@Test
public void testGetComposeStackNotNull() {

    Request request = createMock(Request.class);
    @SuppressWarnings("unchecked")
    Deque<Object> composeStack = createMock(Deque.class);
    Map<String, Object> requestScope = new HashMap<String, Object>();
    requestScope.put(ComposeStackUtil.COMPOSE_STACK_ATTRIBUTE_NAME, composeStack);
    expect(request.getContext("request")).andReturn(requestScope);
    replay(request, composeStack);
    assertSame(composeStack, ComposeStackUtil.getComposeStack(request));
    verify(request, composeStack);
}