PiperOrigin-RevId: 291745021
A few tests have their own ad-hoc implementations. Add a single common one. PiperOrigin-RevId: 283601666