@Test
public void testGetPropertyAccessorRequestScopeDefault() {

    PropertyAccessor objectPropertyAccessor = createMock(PropertyAccessor.class);
    PropertyAccessor applicationContextPropertyAccessor = createMock(PropertyAccessor.class);
    PropertyAccessor requestScopePropertyAccessor = createMock(PropertyAccessor.class);
    PropertyAccessor sessionScopePropertyAccessor = createMock(PropertyAccessor.class);
    PropertyAccessor applicationScopePropertyAccessor = createMock(PropertyAccessor.class);
    Request request = createMock(Request.class);
    ApplicationContext applicationContext = createMock(ApplicationContext.class);
    Map<String, Object> map = new HashMap<String, Object>();
    map.put("anotherAttribute", 1);
    replay(objectPropertyAccessor, applicationContextPropertyAccessor, requestScopePropertyAccessor,
            sessionScopePropertyAccessor, applicationScopePropertyAccessor, request, applicationContext);
    PropertyAccessorDelegateFactory<Request> factory = new TilesContextPropertyAccessorDelegateFactory(
            objectPropertyAccessor, applicationContextPropertyAccessor,
            requestScopePropertyAccessor, sessionScopePropertyAccessor);
    assertEquals(requestScopePropertyAccessor, factory.getPropertyAccessor("attribute", request));
    verify(objectPropertyAccessor, applicationContextPropertyAccessor, requestScopePropertyAccessor,
            sessionScopePropertyAccessor, applicationScopePropertyAccessor, request, applicationContext);
}