@Test
public void hasPermissionToAccessUserReturnsTrueWhenNoSameIdAndUserNotExists() {

    // given
    String accessedUserId = "other";
    given(userMock.getId()).willReturn(USER_ID);
    given(userServiceMock.userExists(accessedUserId)).willReturn(false);
    // when
    boolean actualHasPermission = evaluator.hasPermissionToAccessUser(authenticationMock, userMock, accessedUserId);
    // then
    assertThat(actualHasPermission).isTrue();
}