During a Pap test, a healthcare provider uses a speculum to widen the vaginal canal and then collects cells from the cervix using a small brush or spatula. The sample is sent to a laboratory where it is examined under a microscope for abnormal cells.