public void stop() {
    try {
      checkNotNull(httpServer, "httpServer").stop();
      checkNotNull(guiceFilter, "guiceFilter").destroy();
    }
    catch (Exception e) {
      throw new WebAppException(e);
    }
  }
@Test
  void testDefaultRoutes() throws Exception {
    WebApp app = WebApps.$for("test", this).start();
    String baseUrl = baseUrl(app);
    try {
      assertEquals("foo", getContent(baseUrl + "test/foo").trim());
      assertEquals("foo", getContent(baseUrl + "test/foo/index").trim());
      assertEquals("bar", getContent(baseUrl + "test/foo/bar").trim());
      assertEquals("default", getContent(baseUrl + "test").trim());
      assertEquals("default", getContent(baseUrl + "test/").trim());
      assertEquals("default", getContent(baseUrl).trim());
    } finally {
      app.stop();
    }
  }