@Test
public void testProcessPeopleAssignments() {

	List<OrganizationalEntity> organizationalEntities = new ArrayList<OrganizationalEntity>();
	
	String ids = "espiegelberg,   drbug   ";
	assertTrue(organizationalEntities.isEmpty());
	peopleAssignmentHelper.processPeopleAssignments(ids, organizationalEntities, true);
	assertTrue(organizationalEntities.size() == 2);
	assertTrue(organizationalEntities.contains(createUser("drbug")));
	assertTrue(organizationalEntities.contains(createUser("espiegelberg")));
	
	ids = null;
	organizationalEntities = new ArrayList<OrganizationalEntity>();
	assertTrue(organizationalEntities.isEmpty());
	peopleAssignmentHelper.processPeopleAssignments(ids, organizationalEntities, true);
	assertTrue(organizationalEntities.isEmpty());
	
	ids = "     ";
	organizationalEntities = new ArrayList<OrganizationalEntity>();
	assertTrue(organizationalEntities.isEmpty());
	peopleAssignmentHelper.processPeopleAssignments(ids, organizationalEntities, true);
	assertTrue(organizationalEntities.isEmpty());
	
	ids = "Software Developer";
	organizationalEntities = new ArrayList<OrganizationalEntity>();
	assertTrue(organizationalEntities.isEmpty());
	peopleAssignmentHelper.processPeopleAssignments(ids, organizationalEntities, false);
	assertTrue(organizationalEntities.size() == 1);
	assertTrue(organizationalEntities.contains(createGroup("Software Developer")));
	
	// Test that a duplicate is not added; only 1 of the 2 passed in should be added
	ids = "Software Developer,Project Manager";
	peopleAssignmentHelper.processPeopleAssignments(ids, organizationalEntities, false);
	assertTrue(organizationalEntities.size() == 2);
	assertTrue(organizationalEntities.contains(createGroup("Software Developer")));
	assertTrue(organizationalEntities.contains(createGroup("Project Manager")));
	
}