A collection of JUnit rules for testing code which uses java.lang.System.
https://stefanbirkner.github.io/system-rules/