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