EchoRequestHandler implements RequestHandler { public Long getDelay() { return serverWideDelayMs; } EchoRequestHandler();  EchoRequestHandler(Long serverWideDelayMs); @Override boolean accepts(HttpRequest request); @Override HttpResponse processRequest(HttpRequest request); void setDelay(long serverWideDelayMs); Long getDelay(); @Override String toString();  }
@Test public void constructor() throws Exception { EchoRequestHandler h = new EchoRequestHandler(50L); assertEquals(50L, h.getDelay().longValue()); }