### Question:
AuthorizationService { public boolean hasMemberPrivilegeForObjective(Long objectiveId) { UserContextRole userRole = userRoleFromContextService.getUserRoleInObjectiveId(objectiveId); return userRole.isHigherAuthorityTypeThan(UserContextRole.USER); } @Autowired  AuthorizationService(UserRoleFromContextService userRoleFromContextService); boolean isAdmin(); boolean hasManagerPrivilegeForDepartment(Long departmentId); boolean hasManagerPrivilegeForObjective(Long objectiveId); boolean hasManagerPrivilegeForKeyResult(Long keyResultId); boolean hasMemberPrivilegeForDepartment(Long departmentId); boolean hasMemberPrivilegeForObjective(Long objectiveId); boolean hasMemberPrivilegeForKeyResult(Long keyResultId); boolean isNoteOwner(Long noteId);  }### Answer:
@Test public void hasMemberPrivilegeForObjective_isMember_expectedTrue() { mockCurrentUserRole(UserContextRole.OKRMEMBER); boolean actual = authorizationService.hasMemberPrivilegeForObjective(objectiveId); Assert.assertTrue(actual); }
@Test public void hasMemberPrivilegeForObjective_isUser_expectedFalse() { mockCurrentUserRole(UserContextRole.USER); boolean actual = authorizationService.hasMemberPrivilegeForObjective(objectiveId); Assert.assertFalse(actual); }