Map<String, String> vars = route.parse("/test");
assertEquals("test", vars.get("collection"));
}
@Test
public void testStaticRoute() throws Exception {
Route route = new Route("feed", "/feed");
HashMapContext ctx = new HashMapContext();
assertEquals("/feed", route.expand(ctx));
assertTrue(route.match("/feed"));
assertFalse(route.match("/feed/test"));
assertFalse(route.match("feed"));
Map<String, String> vars = route.parse("/test");
assertEquals(0, vars.size());
}