+ when(SystemProperties.getProperty(SystemProperties.ROLE_FUNCTIONS_ATTRIBUTE_NAME)).thenReturn("role_functions_attribute_name");
+ when(SystemProperties.getProperty(SystemProperties.USER_ATTRIBUTE_NAME)).thenReturn("user_attribute_name");
+ when(session.getAttribute("user_attribute_name")).thenReturn(user);
+ when(session.getAttribute("role_functions_attribute_name")).thenReturn(data);
+ when(session.getAttribute("allRoleFunctions")).thenReturn(allFunctions);