resource.add("/shop/fruit/apple/?", cm);
resource.add("/shop/fruit/banana", cm);
resource.add("/file/info.txt", cm);
Result ret = resource.match("/user/id-3344-2222/55555");
Assert.assertThat(ret.getParams().length, is(3));
Assert.assertThat(ret.getParams()[1], is("2222"));
Assert.assertThat(ret.getParams()[2], is("55555"));
ret = resource.match("/shop/fruit/banana");