String pathInfo = "/cntrl/actn/123";
when(router.route(pathInfo))
.thenReturn(new MojaveRoute("cntrl", "actn", ":id"));
paramMap.put("name", new String[]{"tom"});
RoutedRequest routed = newRouter(pathInfo).route();
assertEquals("cntrl", routed.getController());
assertEquals("actn", routed.getAction());
Map<String, Object> paramMap = routed.getParameterMap();
Object val = paramMap.get("id");
assertNotNull(val);
assertArrayEquals(new String[]{"123"}, (String[])val);
val = paramMap.get("name");
assertNotNull(val);