Diagnosis of mycoplasma infections begins with a medical history and physical exam. Mycoplasma pneumoniae bacteria can be found in the sputum and other body fluids. An antibody titer test can detect antibodies to the infection. A chest X-ray
will also help with the diagnosis.