@Test
public void testGetResources() throws IOException {

    Resource[] found = MifosResourceUtil.getClassPathResourcesAsResources("org/mifos/core/resources/included/**/*.xml");
    assertEquals(2, found.length);
    for (Resource resource : found) {
        String f = resource.getFilename();
        if (!"y.xml".equals(f) && !"z.xml".equals(f)) {
            fail(resource + " should not have been returned");
        }
    }
}