DBType { public static Properties getResourceBundleAsProperties(ResourceBundle resourceBundle) { Properties properties = new Properties(); for (String key : resourceBundle.keySet()) { properties.put(key, resourceBundle.getObject(key)); } return properties; } DBType(String dbType);  DBType(String subProtocol, String subnamePrefix); Properties getProperties(); static Properties getResourceBundleAsProperties(ResourceBundle resourceBundle); @Override int hashCode(); @Override boolean equals(Object obj); String getDriverClass(); String getCharacterSet(); String getSourceCodeTypes(); String getLanguages(); int getSourceCodeReturnType(); String getPropertiesSource(); void setProperties(Properties properties); @Override String toString();  }
@Test public void testAsProperties() { System.out.println("asProperties"); ResourceBundle bundle = ResourceBundle.getBundle(DBType.class.getPackage().getName() + ".test"); Properties expResult = testProperties; Properties result = DBType.getResourceBundleAsProperties(bundle); Assert.assertEquals(expResult, result); }