HMPV infection is usually diagnosed based on the patient's symptoms and medical history. There is no specific test for HMPV, but doctors can test for the virus by collecting a sample of mucus from the nose or throat.