HTTPContext extends NamedContext { public HTTPContext(String host, int port) { this("no-named", host, port); } HTTPContext(String host, int port);  HTTPContext(String name, String host, int port); String getHost(); int getPort(); HTTPContext add(Servlet servlet); List<Servlet> getServlets(); Servlet getServletByName(String name); @Override String toString();  }
@Test public void testHTTPContext() { HTTPContext httpContext = new HTTPContext(TEST_HOST, TEST_PORT); assertEquals(TEST_HOST, httpContext.getHost()); assertEquals(TEST_PORT, httpContext.getPort()); }