Integration with Junit via @Rule annotation