Diagnosis is typically confirmed through laboratory tests, including blood, sputum, or lymph node aspirate cultures.