The test is usually performed during a routine pelvic exam. A healthcare provider collects a sample of cells from the cervix using a small brush or spatula. This sample is then sent to a laboratory where it is analyzed for the presence of HPV DNA. The procedure is similar to a Pap smear, but while a Pap smear looks for abnormal cervical cells, HPV DNA testing specifically looks for high-risk HPV types.