### Question:
ExampleSqlExecutionListener extends SQLExecutionAdapter { @Override public void statementExecuted(String sql) { _messageHandler.showMessage("statementExecuted: "+sql); } ExampleSqlExecutionListener(IMessageHandler messageHandler); @Override void statementExecuted(String sql); @Override String statementExecuting(String sql); void executionFinished();  }### Answer:
@Test public void testStatementExecuted() { final String sqlToTest = "select * from testtable"; classUnderTest.statementExecuted(sqlToTest); Mockito.verify(mockMessageHandler).showMessage("statementExecuted: "+sqlToTest); }