BaseRule implements UriRule { protected final UriTemplate getTemplate() { return template; } BaseRule(final UriTemplate template);   }
@Test public void testSavesAndRetrievesTemplate() throws Exception { UriTemplate template = new UriTemplate("/test/{name}/{id}"); BaseRule rule = new FooRule(template); assertEquals(template, rule.getTemplate()); }