ConfigurableModule implements Module { @Override public String getJaxWsRsApplication() { if (this.jaxWsRsApplication != null) return jaxWsRsApplication; return Module.super.getJaxWsRsApplication(); }  ConfigurableModule withResourceConfigManager(Consumer<JaxRsProvider<T>> resourceConfigManager); ConfigurableModule withServerConfigManager(Consumer<WebServerProvider<?>> serverConfigManager); @Override Set<Object> getJaxRsResourceObjects(); @Override Consumer<WebServerProvider<T>> getServerConfigManager(); @Override Consumer<JaxRsProvider<T>> getResourceConfigManager(); @Override List<String> getDefaultJaxRsPackages(); @Override Set<Class<?>> getRestResourceClasses(); @Override Set<Class<? extends Annotation>> getRestAnnotationClasses(); @Override List<Class<?>> getDefaultResources(); @Override List<ServletContextListener> getListeners(ServerData data); @Override List<ServletRequestListener> getRequestListeners(ServerData data); @Override Map<String, Filter> getFilters(ServerData data); @Override Map<String, Servlet> getServlets(ServerData data); @Override String getJaxWsRsApplication(); @Override String getProviders(); @Override String getContext(); @Override Set<Class<?>> getSpringConfigurationClasses(); @Override Map<String, Object> getServerProperties();  }
@Test public void testGetJaxWsRsApplication() { assertThat(module.getJaxWsRsApplication(),is(this.jaxWsRsApplication)); }
@Test(expected=IncorrectJaxRsPluginsException.class) public void testGetJaxWsRsApplicationUnchanged() { unchanged.getJaxWsRsApplication(); }
@Test public void testWithJaxWsRsApplication() { assertThat(unchanged.withJaxWsRsApplication(this.jaxWsRsApplication).getJaxWsRsApplication(),is(module.getJaxWsRsApplication())); }