DefaultTilesInitializer extends AbstractTilesInitializer { @Override protected AbstractTilesContainerFactory createContainerFactory( ApplicationContext context) { return new BasicTilesContainerFactory(); }    }
@Test public void testCreateContainerFactory() { ApplicationContext context = createMock(ApplicationContext.class); replay(context); DefaultTilesInitializer initializer = new DefaultTilesInitializer(); assertTrue(initializer.createContainerFactory(context) instanceof BasicTilesContainerFactory); verify(context); }