Moved Junit rule to be reusable by other modules