connectionProperties.put("driverClassName", "org.hsqldb.jdbcDriver");
connectionProperties.put("username", "sa");
connectionProperties.put("password", "");
ConfigurationManager cm = (ConfigurationManager)container.getComponentInstanceOfType(ConfigurationManager.class);
DBCreator dbCreator =
new DBCreator(serverUrl, connectionProperties, "classpath:/dbcreator/test.sql", "sa", "", cm);
DBConnectionInfo dbInfo = dbCreator.createDatabase("testdb");
DBConnectionInfo dbInfo1 = dbCreator.getDBConnectionInfo("testdb");
Map<String, String> connProps = dbInfo.getProperties();
Map<String, String> connProps1 = dbInfo1.getProperties();
assertEquals(connProps.get("driverClassName"), connProps1.get("driverClassName"));