Diagnosis of ESBL infections involves laboratory tests to identify the bacteria and their resistance patterns. Samples from the infection site, such as blood, urine, or wound swabs, are cultured in a lab. If ESBL producing bacteria are detected, further testing is done to determine the most effective antibiotics for treatment.