@Test
public void testSetContainer() {

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