Typically, a chlamydia test is quick and easy. Urine tests, as well as swab tests, can be done to detect the chlamydia bacterium. Swab tests can be used to detect chlamydia in the genitals, rectum, or oral cavity.