Mycoplasma pneumonia can be diagnosed through serological testing for Mycoplasma antibodies or PCR testing for Mycoplasma DNA in respiratory samples.