How does the Church determine a true Marian apparition?

How does the Church determine a true Marian apparition?