Clean up unit JUnit tests by using @Rule