TerminationLoggingFactory implements TerminationHookFactory { @Override public TerminationHook create(Config config) { return new TerminationLogging(); }  @Override TerminationHook create(Config config);  }
@Test public void shouldCreateInstance() { assertThat(terminationHookFactory.create(mock(Config.class)), is(notNullValue())); }