ConfigurableModule implements Module { @Override public String getProviders() { if (providers != null) return providers; return Module.super.getProviders(); }  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 testGetProviders() { assertThat(module.getProviders(),is(this.providers)); }
@Test public void testGetProvidersUnchanged() { assertThat(unchanged.getProviders(),is(m.getProviders())); }
@Test public void testWithProviders() { assertThat(unchanged.withProviders(this.providers).getProviders(),is(module.getProviders())); }