### Question:
DefaultTableInputGenerator implements TableInputGenerator { @Override public ResultSet filter(String filterExpression) throws InputGenerationException, AlgorithmConfigurationException { String query = String.format(FILTER_STATEMENT, table, filterExpression); return defaultDatabaseConnectionGenerator .generateResultSetFromSql(query); } protected  DefaultTableInputGenerator(); protected  DefaultTableInputGenerator(
    DefaultDatabaseConnectionGenerator defaultDatabaseConnectionGenerator, String table);  DefaultTableInputGenerator(ConfigurationSettingTableInput setting); @Override RelationalInput generateNewCopy(); @Override ResultSet sortBy(String column, Boolean descending); @Override ResultSet filter(String filterExpression); @Override ResultSet select(); @Override @JsonIgnore DatabaseConnectionGenerator getDatabaseConnectionGenerator(); @Override void close();  }### Answer:
@Test public void testFilter() throws InputGenerationException, AlgorithmConfigurationException { DefaultDatabaseConnectionGenerator defaultDatabaseConnectionGenerator = mock(DefaultDatabaseConnectionGenerator.class); String expectedTable = "some table"; String expectedColumn = "some column"; DefaultTableInputGenerator tableInputGenerator = new DefaultTableInputGenerator(defaultDatabaseConnectionGenerator, expectedTable); tableInputGenerator.filter(expectedColumn); verify(defaultDatabaseConnectionGenerator) .generateResultSetFromSql(String.format(DefaultTableInputGenerator.FILTER_STATEMENT, expectedTable, expectedColumn)); }