@Test
public void testGetContainer() {

    ApplicationContext context = createMock(ApplicationContext.class);
    TilesContainer container = createMock(TilesContainer.class);
    Map<String, Object> attribs = new HashMap<String, Object>();
    expect(context.getApplicationScope()).andReturn(attribs).anyTimes();
    replay(context, container);
    attribs.put(TilesAccess.CONTAINER_ATTRIBUTE, container);
    assertEquals(container, TilesAccess.getContainer(context));
    verify(context, container);
}