@Test
public void testGetResources() throws IOException {

    URL url = new URL("file:///portletContext/my/path.html");
    expect(portletContext.getResource("/my/path")).andReturn(url);
    replay(portletContext);
    Collection<ApplicationResource> resources = context.getResources("/my/path");
    assertEquals(1, resources.size());
    assertEquals(resources.iterator().next().getLocalePath(), "/my/path");
    verify(portletContext);
}