DbUnitDaleqSupport implements DaleqSupport { @Override public void printTable(final Table table, final PrintStream printer) throws IOException { Preconditions.checkNotNull(table); final TableData tableData = table.build(context); tableFormatter.formatTo(tableData, printer); } DbUnitDaleqSupport(
            final IDataSetFactory dataSetFactory,
            final ConnectionFactory connectionFactory,
            final Asserter asserter); @Override void insertIntoDatabase(final Table... tables); @Override void cleanInsertIntoDatabase(final Table... tables); @Override void assertTableInDatabase(final Table table, final FieldDef... ignoreColumns); @Override void printTable(final Table table, final PrintStream printer);  }
@Test public void printTable_should_delegateToTableFormatter() throws IOException { final PrintStream printStream = createMock(PrintStream.class); tableFormatter.formatTo(exampleTable.build(ContextFactory.context()), printStream); replayAll(); daleqSupport.printTable(exampleTable, printStream); verifyAll(); }