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