@Test
public void testBasic() throws URISyntaxException
{
ResourceMethodRegistry registry = new ResourceMethodRegistry(ResteasyProviderFactory
.getInstance());
registry.addSingletonResource(new NullResource());
assertMatchRoot(registry, "/", "doNothing", NullResource.class);
assertMatchRoot(registry, "/child", "childDoNothing", NullResource.class);
assertMatchRoot(registry, "/child/foo", "childWithName", NullResource.class);
assertMatchRoot(registry, "/child/1", "childWithId", NullResource.class);
assertMatchRoot(registry, "/child1/1", "child1WithId", NullResource.class);