@Test(expected = NullPointerException.class)
public void testSetCurrentContainerWithContainerException() {

    Request request = createMock(Request.class);
    ApplicationContext context = createMock(ApplicationContext.class);
    Map<String, Object> attribs = new HashMap<String, Object>();
    expect(context.getApplicationScope()).andReturn(attribs).anyTimes();
    replay(request, context);
    try {
        TilesAccess.setCurrentContainer(request, (TilesContainer) null);
    } finally {
        verify(request, context);
    }
}