@Test
public void testTILES484first() throws IOException {

    ApplicationContext applicationContext = createMock(ApplicationContext.class);
    ApplicationResource resource = createMock(ApplicationResource.class);
    expect(resource.getLocale()).andReturn(Locale.ROOT);
    Collection<ApplicationResource> resourceSet = new HashSet<ApplicationResource>();
    resourceSet.add(resource);
    expect(applicationContext.getResources("/WEB-INF/**/tiles*.xml")).andReturn(null);
    expect(applicationContext.getResources("classpath*:META-INF/**/tiles*.xml")).andReturn(resourceSet);
    replay(applicationContext, resource);
    List<ApplicationResource> resources = factory.getSources(applicationContext);
    assertEquals(1, resources.size());
    assertTrue(resources.contains(resource));
    verify(applicationContext, resource);
}