@Test
public void testAssignRecipients() {

    String recipientId = "espiegelberg";
    Task task = TaskModelProvider.getFactory().newTask();
    InternalPeopleAssignments peopleAssignments = peopleAssignmentHelper.getNullSafePeopleAssignments(task);
    WorkItem workItem = new WorkItemImpl();
    workItem.setParameter(PeopleAssignmentHelper.RECIPIENT_ID, recipientId);
    peopleAssignmentHelper.assignRecipients(workItem, peopleAssignments);
    assertEquals(1, peopleAssignments.getRecipients().size());
    OrganizationalEntity organizationalEntity1 = peopleAssignments.getRecipients().get(0);
    assertTrue(organizationalEntity1 instanceof User);
    assertEquals(recipientId, organizationalEntity1.getId());
}