}
public void testCreateResource() throws Exception
{
ResourceHandler handler = new MockSimpleResourceHandler(_documentRoot);
Resource resource = handler.createResource("testfile.js", "testlib");
assertNotNull("resource could not be created", resource);
assertTrue(resource.getURL().toString().endsWith(
"org/apache/myfaces/test/mock/resources/testlib/testfile.js"));
}