ApplicationContext applicationContext = createMock(ApplicationContext.class);
Set<ApplicationResource> urlSet = new HashSet<ApplicationResource>();
urlSet.add(url1);
expect(applicationContext.getResources("/WEB-INF/tiles.xml")).andReturn(urlSet);
replay(applicationContext);
DefinitionsReader reader = new DigesterDefinitionsReader();
definitionDao.setReader(reader);
List<ApplicationResource> sourceURLs = new ArrayList<ApplicationResource>();
sourceURLs.add(url1);
definitionDao.setSources(sourceURLs);
assertEquals("The reader is not of the correct class", DigesterDefinitionsReader.class,