Issue 791 New repository creation bug fixed.

@yegor256 ```rule``` is static field because we need to use it in static context of setUp method with ```@BeforeClass```(this annotation needs setup method to be static). This because I don't think that there is something wrong.