The HPV test is usually conducted using a sample of cells from the cervix, collected during a Pap smear or a separate procedure. The sample is then tested for the presence of high-risk HPV DNA. The test can be done concurrently with a Pap test (co-testing) or as a primary screening method.