JettyServer { public void start() { initializeJettyServer(); server.setHandler(handlerList); startJettyServer(); }  void start(); void stop();  }
@Test public void testStartShouldCallSetHandlerOnServerWhenCreateServerWasSuccessfully() { given(serverFactory.createServer(serverProperties)).willReturn(jettyServer); underTest.start(); verify(jettyServer).setHandler((Handler) Mockito.anyObject()); }