Set<String> elementSet = new HashSet<String>();
elementSet.add("/WEB-INF/pom.xml");
EasyMock.expect(portletContext.getResourcePaths("/WEB-INF/")).andReturn(elementSet).anyTimes();
EasyMock.replay(portletContext);
assertEquals(new URLApplicationResource(u.toExternalForm(), u), context.getResource("/" + url));
assertEquals(new URLApplicationResource(pomUrl.toExternalForm(), pomUrl), context.getResource("/WEB-INF/*.xml"));
assertEquals(TEST_PROPERTIES_SIZE, context.getResources(
"classpath*:/test.properties").size());
assertEquals(TEST_TEST_SIZE, context.getResources(
"classpath*:/org/apache/tiles/request/portlet/wildcard/*Test.class").size());