Precision test of the Breit-Wigner formula on resonances in a superconducting microwave cavity