@Test(expected = PermissionDeniedException.class)
public void testUserWithoutPermission() {

    when(userGroupCallback.getGroupsForUser(USER_ID)).thenReturn(new ArrayList<String>());
    when(peopleAssignments.getBusinessAdministrators()).thenReturn(new ArrayList<OrganizationalEntity>());
    command.execute(taskContext);
    fail();
}