UriTemplateParser { @PostConstruct public void init() { Set<Class<?>> controllerClasses = (Set<Class<?>>) servletContext.getAttribute(OzarkContainerInitializer.CONTROLLER_CLASSES); applicationUris = init(controllerClasses != null ? controllerClasses : Collections.emptySet()); }  @PostConstruct void init();  }
@Test public void shouldInitApplicationUris() { HashSet<Class<?>> controllers = new HashSet<>(Arrays.asList(UriBuilderTestControllers.SomeController.class, UriBuilderTestControllers.ParamsController.class)); ApplicationUris uris = uriTemplateParser.init(controllers); assertThat(uris.list().size(), is(7)); }