ParsingHookRegistry { public void finishFailure(final Exception cause) { hooks.forEach(each -> each.finishFailure(cause)); } private  ParsingHookRegistry(); static ParsingHookRegistry getInstance(); void start(final String sql); void finishSuccess(final SQLStatement sqlStatement); void finishFailure(final Exception cause);  }
@Test public void assertFinishFailure() { registry.finishFailure(null); assertTrue(ParsingHookFixture.containsAction("finishFailure")); }