JUnit rule compatible with JUnit 4.7+