.getResource("org/apache/tiles/config/defs-wildcard.xml"))
.andReturn(url);
EasyMock.replay(applicationContext);
((TilesApplicationContextAware) definitionDao)
.setApplicationContext(applicationContext);
definitionDao.setReader(new DigesterDefinitionsReader());
Definition definition = definitionDao.getDefinition("test.defName.subLayered", Locale.ITALY);
assertEquals("The template is not correct", "/testName.jsp", definition.getTemplate());
assertEquals("The header attribute is not correct",
"/common/headerLayered.jsp", definition.getAttribute("header")