The Pap test involves collecting cells from the cervix using a small brush or spatula, which are then examined under a microscope for abnormalities. The HPV test checks for the presence of high-risk HPV types that are most likely to cause cervical cancer. Both tests can be done during a pelvic examination.