ConfigurableModule implements Module { @Override public Map<String, Object> getServerProperties() { if (serverProperties != null) { return MapX.fromMap(serverProperties).plusAll(extractMap(() -> Module.super.getServerProperties())); } else { return Module.super.getServerProperties(); } }  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 testGetServerProperties() { Assert.assertEquals(1, module.getServerProperties().get(SERVER_PROPERTIES_KEY)); }
@Test public void testGetServerPropertiesResetAll() { Assert.assertThat(module.withResetAll(true).getServerProperties(), is(serverProperties)); }