assertTrue(cogroupAddedFields.get(1) == 1);
//check that the foreach projection map has non-null mappedFields
LOForEach foreach = (LOForEach)lp.getLeaves().get(0);
ProjectionMap foreachProjectionMap = foreach.getProjectionMap();
assertTrue(foreachProjectionMap.changes() == true);
MultiMap<Integer, ProjectionMap.Column> foreachMappedFields = foreachProjectionMap.getMappedFields();
assertTrue(foreachMappedFields != null);
List<ProjectionMap.Column> mapValues = (ArrayList<ProjectionMap.Column>)foreachMappedFields.get(0);
assertTrue(mapValues.get(0).getInputColumn().first == 0);