Described here is a technique in which lipopolysaccharide is injected into the lactating mouse mammary gland via the nipple to simulate mastitis, a condition commonly caused by bacterial infection. Lipopolysaccharide injection results in increased nuclear factor kappa B (NF-κB) signaling, visualized through bioluminescent imaging of an NF-κB luciferase reporter mouse.