connection.setupDataSet(new DefaultDataSet(table));
connection.setupDataSet(new DefaultDataSet(table1, table2));
    public void testExecuteWithDuplicateTables() throws Exception    {        String schemaName = "schema";        String tableName = "table";        String expected = getExpectedStament(schemaName + "." + tableName);        ITable table = new DefaultTable(tableName);        IDataSet dataSet = new DefaultDataSet(new ITable[] {table, table});        // setup mock objects        MockBatchStatement statement = new MockBatchStatement();        statement.addExpectedBatchString(expected);        statement.addExpectedBatchString(expected);        statement.setExpectedExecuteBatchCalls(1);        statement.setExpectedClearBatchCalls(1);        statement.setExpectedCloseCalls(1);        MockStatementFactory factory = new MockStatementFactory();        factory.setExpectedCreateStatementCalls(1);        factory.setupStatement(statement);        MockDatabaseConnection connection = new MockDatabaseConnection();        connection.setupDataSet(new DefaultDataSet(table));        connection.setupSchema(schemaName);        connection.setupStatementFactory(factory);        connection.setExpectedCloseCalls(0);        // execute operation        getDeleteAllOperation().execute(connection, dataSet);        statement.verify();        factory.verify();        connection.verify();    }