assertTrue(cogroupAddedFields.get(1) == 2);
//check that the foreach projection map has null mappedFields
LOForEach foreach = (LOForEach)lp.getLeaves().get(0);
ProjectionMap foreachProjectionMap = foreach.getProjectionMap();
assertTrue(foreachProjectionMap.changes() == true);
assertTrue(foreachProjectionMap.getMappedFields() == null);
//check that removed fields has all the columns from the input cogroup
List<Pair<Integer, Integer>> foreachRemovedFields = foreachProjectionMap.getRemovedFields();
assertTrue(foreachProjectionMap.getRemovedFields().size() == 3);