private DatabaseConnection createDatabaseConnection(final String dbName) throws Exception {
   DatabaseConnection dbConnection = new DatabaseConnection();
   dbConnection.setName(dbName);
   dbConnection.setHostname(EXP_DBMETA_HOSTNAME);
   dbConnection.setDatabaseType(mockDatabaseType("Hypersonic"));
   dbConnection.setAccessType(DatabaseAccessType.NATIVE);
   dbConnection.setDatabasePort(EXP_DBMETA_PORT);
   return dbConnection;
 }
 private void updateDatabaseConnection(DatabaseConnection dbConnection) throws Exception {
   dbConnection.setHostname(EXP_UPDATED_DBMETA_HOSTNAME);
   dbConnection.setDatabaseType(mockDatabaseType("Generic database"));
   dbConnection.setAccessType(DatabaseAccessType.JNDI);
   dbConnection.setDatabasePort(EXP_UPDATED_DBMETA_PORT);
 }