The answer to 'how to test recessed lighting' is to first turn off the power to the recessed lighting at the circuit breaker. Then, use a voltage tester to check that the power is off and there is no voltage running to the fixture. Next, remove the recessed light trim or housing to access the internal components. Inspect the bulb, socket, and wiring connections to ensure they are in good condition. If the bulb is burned out, replace it. If the connections are loose or damaged, tighten them or replace the socket as needed. Finally, turn the power back on and test the recessed light to ensure it is working properly.
It's important to take safety precautions when testing recessed lighting, such as turning off the power, using insulated tools, and avoiding contact with live electrical components. If you are not comfortable performing this test or find any major issues, it's best to call a licensed electrician to inspect and repair the recessed lighting.