CompleteAutoloadTilesContainerFactory extends BasicTilesContainerFactory { @Override protected DefinitionsReader createDefinitionsReader(ApplicationContext applicationContext) { return new CompatibilityDigesterDefinitionsReader(); }  @Override TilesContainer createDecoratedContainer(TilesContainer originalContainer,
            ApplicationContext applicationContext);  }
@Test public void testCreateDefinitionsReader() { ApplicationContext applicationContext = createMock(ApplicationContext.class); replay(applicationContext); assertTrue(factory.createDefinitionsReader(applicationContext) instanceof CompatibilityDigesterDefinitionsReader); verify(applicationContext); }