objectIdentity = new ObjectIdentityImpl(targetType, targetId);
Mockito.when(aclUtil.createIdentity(targetId, targetType)).thenReturn(objectIdentity);
user = new JCUser("username", "email", "password");
user.setId(1);
userSid = new UserSid(user);
groupSid = new UserGroupSid(targetId);
group = Mockito.mock(Group.class);
List<User> users = new ArrayList<>();
users.add(user);
when(group.getUsers()).thenReturn(users);
when(group.getId()).thenReturn(targetId);