AbstractTilesInitializer implements TilesInitializer { protected TilesContainer createContainer(ApplicationContext context) { AbstractTilesContainerFactory factory = createContainerFactory(context); return factory.createContainer(context); }  void initialize(ApplicationContext applicationContext); void destroy(); static final String CONTAINER_KEY_INIT_PARAMETER; }
@Test public void testCreateContainer() { ApplicationContext context = createMock(ApplicationContext.class); TilesContainer container = createMock(TilesContainer.class); expect(containerFactory.createContainer(context)).andReturn(container); replay(containerFactory, context, container); assertEquals(container, initializer.createContainer(context)); verify(containerFactory, context, container); }