Diagnosis of Chlamydia trachomatis typically involves nucleic acid amplification tests (NAATs) performed on urine samples or swabs from the affected areas. These tests are highly sensitive and specific, making them the preferred method for detecting the infection.