### Question:
Config implements Serializable { public boolean getBooleanProperty(String key, boolean defaultValue) { String result = properties.getProperty(key); if (result != null) { if (result.trim().equalsIgnoreCase("true")) { return true; } else { if (result.trim().equalsIgnoreCase("false")) { return false; } } } return defaultValue; }  String getXmlFile(); @XmlTransient void setXmlFile(File file); void setXmlFile(String name); void setProperty(String key, String value); String getProperty(String key); Tuples getTuples(); Set<Entry<Object, Object>> entrySet(); void put(Object key, Object value); String getStringProperty(String key, String defaultValue); int getIntProperty(String key, int defaultValue); boolean getBooleanProperty(String key, boolean defaultValue); double getDoubleProperty(String key, double defaultValue); ArrayList<URL> getUrlListProperty(String key); ArrayList<String> getPathListProperty(String key); Properties getProperties(); @Override String toString();  }### Answer:
@Test public void testGetBooleanProperty() { Assert.assertTrue("This property in Config must be true", config.getBooleanProperty("boolean-property-true", false)); Assert.assertFalse("This property in Config must be false", config.getBooleanProperty("boolean-property-false", true)); }