SPISQLExecutionHook implements SQLExecutionHook { @Override public void finishFailure(final Exception cause) { for (SQLExecutionHook each : sqlExecutionHooks) { each.finishFailure(cause); } }  @Override void start(final String dataSourceName, final String sql, final List<Object> parameters, 
                      final DataSourceMetaData dataSourceMetaData, final boolean isTrunkThread, final Map<String, Object> shardingExecuteDataMap); @Override void finishSuccess(); @Override void finishFailure(final Exception cause);  }
@Test public void assertFinishFailure() { spiSQLExecutionHook.finishFailure(null); assertTrue(SQLExecutionHookFixture.containsAction("finishFailure")); }