BootstrapProperties extends Properties { public boolean isEnabled(String key) { return isEnabled(this, key); } BootstrapProperties();  BootstrapProperties(String resourceName);  BootstrapProperties(Properties p); Long getProperty(String key, Long defaultValue); @Deprecated synchronized Adapter createAdapter(); InputStream getConfigurationStream(); String[] getConfigurationUrls(); @SuppressWarnings("deprecation") String findAdapterResource(); boolean isPrimaryUrlAvailable(); URLString getPrimaryUrl(); synchronized AdapterConfigManager getConfigManager(); void reconfigureLogging(); boolean isEnabled(String key); static boolean isEnabled(Properties p, String key);  }
@Test public void testIsEnabled() { BootstrapProperties boot = new BootstrapProperties(createTestSample()); assertTrue(boot.isEnabled(Constants.CFG_KEY_PROXY_AUTHENTICATOR)); assertTrue(boot.isEnabled(Constants.CFG_KEY_USE_MANAGEMENT_FACTORY_FOR_JMX)); assertTrue(boot.isEnabled(Constants.CFG_KEY_LOGGING_RECONFIGURE)); assertTrue(boot.isEnabled(Constants.CFG_KEY_START_QUIETLY)); assertFalse(boot.isEnabled(Constants.CFG_KEY_JNDI_SERVER)); boot.put(Constants.CFG_KEY_LOGGING_RECONFIGURE, "false"); assertFalse(boot.isEnabled(Constants.CFG_KEY_LOGGING_RECONFIGURE)); assertFalse(boot.isEnabled("blahblahblah")); assertTrue(BootstrapProperties.isEnabled(createTestSample(), Constants.CFG_KEY_USE_MANAGEMENT_FACTORY_FOR_JMX)); }