@Test
public void testAssignGroups() {

	
	String groupId = "Software Developers, Project Managers";
	
	Task task = TaskModelProvider.getFactory().newTask();
	PeopleAssignments peopleAssignments = peopleAssignmentHelper.getNullSafePeopleAssignments(task);
	
	WorkItem workItem = new WorkItemImpl();		
	workItem.setParameter(PeopleAssignmentHelper.GROUP_ID, groupId);
	
	peopleAssignmentHelper.assignGroups(workItem, peopleAssignments);
	OrganizationalEntity organizationalEntity1 = peopleAssignments.getPotentialOwners().get(0);
	assertTrue(organizationalEntity1 instanceof Group);
	assertEquals("Software Developers", organizationalEntity1.getId());
	OrganizationalEntity organizationalEntity2 = peopleAssignments.getPotentialOwners().get(1);
	assertTrue(organizationalEntity2 instanceof Group);
	assertEquals("Project Managers", organizationalEntity2.getId());
	
}