TilesContainer container = EasyMock.createMock(TilesContainer.class);
TilesRequestContext requestContext = EasyMock
.createMock(TilesRequestContext.class);
EasyMock.expect(contextFactory.createRequestContext(applicationContext))
.andReturn(requestContext);
container.render("my.definition");
EasyMock.replay(applicationContext, contextFactory, requestContext,
container);
renderer.setApplicationContext(applicationContext);
renderer.setRequestContextFactory(contextFactory);
renderer.setContainer(container);