Ureaplasma is tested through a vaginal, urinary, or cervical swab. The sample is sent to a lab and analyzed through culture or DNA-based tests. A pelvic exam may be done to check for signs of infection.