@Test
public void testGetPageScope() {

    DispatchRequest enclosedRequest = createMock(DispatchRequest.class);
    expect(enclosedRequest.getAvailableScopes()).andReturn(Collections.singletonList("parent"));
    replay(enclosedRequest);
    context = new FreemarkerRequest(enclosedRequest, env);
    assertTrue(context.getPageScope() instanceof EnvironmentScopeMap);
    verify(enclosedRequest);
}