This post moved to
https://jussi.hallila.com/articles/using-rules-to-help-your-junit-testcases/
.