@Test public 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();
  }
}