Migrate Junit 4 to Junit 5: gax-java
Junit 5 provides a lot of new features(namely Precise exception handling, RepeatedTest etc.) that could be useful to us, it requires Java 8 to be the minimum runtime version, now that Java 8 is the minimum supported version for GAPIC, we can follow the migration guide to modernize our testing infra.
We can start with all the handwritten code in this repo, and expand to google-cloud-java and eventually handwritten libraries.
One additional benefit of JUnit 5 from this implementation: https://github.com/googleapis/sdk-platform-java/pull/2485
JUnit 4 doesn't have support for setting Environmental Variables inside tests. JUnit 5 has an extension pack which allows setting and clearing the env vars: https://junit-pioneer.org/docs/environment-variables/