### Question:
NetezzaConnectionFactory implements DbUnitConnectionFactory { @Override public IDatabaseConnection createConnection(final Connection connection, final String schema) throws DatabaseUnitException { final IDatabaseConnection dbUnitConnection = new DatabaseConnection(connection, schema); dbUnitConnection.getConfig().setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY, new NetezzaDataTypeFactory()); dbUnitConnection.getConfig().setProperty(DatabaseConfig.PROPERTY_METADATA_HANDLER, new NetezzaMetadataHandler()); return dbUnitConnection; }  @Override boolean supportsDriver(final String driverClass); @Override IDatabaseConnection createConnection(final Connection connection, final String schema);  }### Answer:
@Test public void testCreateConnection() throws DatabaseUnitException { final String schema = "foo"; final IDatabaseConnection dbConnection = FACTORY.createConnection(connection, schema); assertThat(dbConnection, notNullValue()); final Object typeFactory = dbConnection.getConfig().getProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY); assertThat(typeFactory, notNullValue()); assertThat(typeFactory.getClass(), equalTo(NetezzaDataTypeFactory.class)); final Object metadataHandler = dbConnection.getConfig().getProperty(DatabaseConfig.PROPERTY_METADATA_HANDLER); assertThat(metadataHandler, notNullValue()); assertThat(metadataHandler.getClass(), equalTo(NetezzaMetadataHandler.class)); assertThat(dbConnection.getSchema(), equalTo(schema)); }