NinjaPropertiesImpl implements NinjaProperties { public void bindProperties(Binder binder) { Names.bindProperties(binder, ConfigurationConverter.getProperties(compositeConfiguration)); } NinjaPropertiesImpl(
            NinjaMode ninjaMode);  NinjaPropertiesImpl(
            NinjaMode ninjaMode, String externalConfigurationPath); @Override String get(String key); @Override String getOrDie(String key); @Override Integer getInteger(String key); @Override Integer getIntegerOrDie(String key); @Override Boolean getBooleanOrDie(String key); @Override Boolean getBoolean(String key); void setProperty(String key, String value); void bindProperties(Binder binder); @Override boolean isProd(); @Override boolean isDev(); @Override boolean isTest(); @Override String getContextPath(); @Override void setContextPath(String contextPath); @Override Properties getAllCurrentNinjaProperties(); @Override String[] getStringArray(String key); @Override String getWithDefault(String key, String defaultValue); @Override Integer getIntegerWithDefault(String key, Integer defaultValue); @Override Boolean getBooleanWithDefault(String key, Boolean defaultValue);  }
@Test public void testPropertiesBoundInGuice() { final NinjaPropertiesImpl props = new NinjaPropertiesImpl(NinjaMode.dev); MockService service = Guice.createInjector(new AbstractModule() { @Override protected void configure() { props.bindProperties(binder()); } }).getInstance(MockService.class); assertNotNull("Application secret not set by Guice", service.applicationSecret); assertEquals("secret", service.applicationSecret); }