RTGovProperties { public static String getProperty(String name) { String ret=null; if (getPropertiesProvider() != null) { ret = getPropertiesProvider().getProperty(name); } if (LOG.isLoggable(Level.FINE)) { LOG.fine("Runtime Governance property '"+name+"' = "+ret); } return (ret); } private  RTGovProperties(); static void setPropertiesProvider(RTGovPropertiesProvider props); static RTGovPropertiesProvider getPropertiesProvider(); static String getProperty(String name); static String getProperty(String name, String def); static Boolean getPropertyAsBoolean(String name); static Boolean getPropertyAsBoolean(String name, Boolean def); static Integer getPropertyAsInteger(String name); static Integer getPropertyAsInteger(String name, Integer def); static Long getPropertyAsLong(String name); static Long getPropertyAsLong(String name, Long def); static java.util.Properties getProperties();  }
@Test public void testDefaultPropertyProvider() { String value=RTGovProperties.getProperty("test.property"); if (value == null) { fail("Property not found"); } if (!value.equals("test.value")) { fail("Incorrect value: "+value); } }