@Test
public void testTILES484second() throws IOException {

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