The first time I stumbled over a JUnit @Rule annotation I was a bit irritated of the concept. Having a…