- You will have an anal pap test. To perform this test, 2 small swabs are placed in your anal canal to collect cells, similar to the pap test performed on your cervix. These samples will also be used to test for anal HPV. A third swab will be collected for research testing related to anal HPV. A fourth swab will be collected for research testing related to bacteria in the rectum.