@Test
public void insertIntoDatabase_should_insertAnIDataSetWithDbUnit() throws SQLException, DatabaseUnitException {

    expectConnection();
    final Capture<IDataSet> capturedDataset = new Capture<IDataSet>();
    insertOperation.execute(eq(connection), capture(capturedDataset));
    replayAll();
    daleqSupport.insertIntoDatabase(exampleTable);
    verifyAll();
    final IDataSet dataSet = capturedDataset.getValue();
    assertThat(dataSet.getTableNames(), arrayContaining("FOO"));
    final ITable table = dataSet.getTable("FOO");
    assertThat(table.getValue(0, "ID"), Matchers.is((Object) "0"));
    assertThat(table.getValue(0, "VALUE"), Matchers.is((Object) "val0"));
    assertThat(table.getValue(1, "ID"), Matchers.is((Object) "1"));
    assertThat(table.getValue(1, "VALUE"), Matchers.is((Object) "val1"));
}