### Question:
DefaultTableInputGenerator implements TableInputGenerator { @Override public RelationalInput generateNewCopy() throws InputGenerationException, AlgorithmConfigurationException { String query = String.format(BASE_STATEMENT, table); return defaultDatabaseConnectionGenerator .generateRelationalInputFromSql(query, table); } 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 testGenerateNewCopy() throws InputGenerationException, AlgorithmConfigurationException { DefaultDatabaseConnectionGenerator defaultDatabaseConnectionGenerator = mock(DefaultDatabaseConnectionGenerator.class); String expectedTable = "some table"; DefaultTableInputGenerator tableInputGenerator = new DefaultTableInputGenerator(defaultDatabaseConnectionGenerator, expectedTable); tableInputGenerator.generateNewCopy(); verify(defaultDatabaseConnectionGenerator) .generateRelationalInputFromSql( String.format(DefaultTableInputGenerator.BASE_STATEMENT, expectedTable), expectedTable ); }