### Question:
ConfigurablePropertiesModule extends AbstractModule { protected Properties getProperties() { return properties; } ConfigurablePropertiesModule();   }### Answer:
@Test public void testDefaultProperties() throws Exception { TestableConfigurablePropertiesModule propertiesModule = new TestableConfigurablePropertiesModule(); Properties properties = propertiesModule.getProperties(); assertEquals("Default container.js location", "res: properties.getProperty("shindig.containers.default")); assertEquals("No contextRoot", "http: properties.getProperty("shindig.signing.global-callback-url")); }
@Test public void testDefaultProperties_WithReplacedContextRoot() throws Exception { System.setProperty("shindig.contextroot", "shindigcontext"); TestableConfigurablePropertiesModule propertiesModule = new TestableConfigurablePropertiesModule(); Properties properties = propertiesModule.getProperties(); assertEquals("Default container.js location", "res: properties.getProperty("shindig.containers.default")); assertEquals("Replaced contextRoot", "http: properties.getProperty("shindig.signing.global-callback-url")); System.clearProperty("shindig.contextroot"); }