@Test
public void testUserOnPotentialOwnersGroups() {

    List<String> userGroups = new ArrayList<>();
    userGroups.add("user");
    when(userGroupCallback.getGroupsForUser(USER_ID)).thenReturn(userGroups);
    List<OrganizationalEntity> potentialOwners = new ArrayList<>();
    potentialOwners.add(new GroupImpl("user"));
    when(peopleAssignments.getPotentialOwners()).thenReturn(potentialOwners);
    Task commandTask = command.execute(taskContext);
    assertEquals(task,
                 commandTask);
}