Rules { protected final RouteBuilder routeFor(String uri) { RouteBuilder rule = router.builderFor(uri); rule.withPriority(Integer.MIN_VALUE); this.routesToBuild.add(rule); return rule; } Rules(Router router); abstract void routes();  }
@Test(expected=IllegalRouteException.class) public void allowsAdditionOfRouteBuildersByDefaultWithNoStrategy() { new Rules(router) { @Override public void routes() { routeFor(""); } }; }