SPIRoutingHook implements RoutingHook { @Override public void start(final String sql) { for (RoutingHook each : routingHooks) { each.start(sql); } }  @Override void start(final String sql); @Override void finishSuccess(final RouteContext routeContext, final SchemaMetaData schemaMetaData); @Override void finishFailure(final Exception cause);  }
@Test public void assertStart() { String sql = "SELECT * FROM table"; spiRoutingHook.start(sql); RoutingHook routingHook = getFixtureHook(); assertThat(routingHook, instanceOf(RoutingHookFixture.class)); assertThat(((RoutingHookFixture) routingHook).getSql(), is(sql)); }