assertTrue(cogroupRelevantFields2.getNeedAllFields() == true);
assertTrue(cogroupRelevantFields2.getNeedNoFields() == false);
assertTrue(cogroupRelevantFields2.getFields() == null);
assertTrue(cogroup.getRelevantInputs(0, 2).get(0) == null);
LOForEach foreach = (LOForEach)lp.getLeaves().get(0);
RequiredFields foreachRelevantFields0 = foreach.getRelevantInputs(0, 0).get(0);
assertTrue(foreachRelevantFields0.getNeedAllFields() == false);
assertTrue(foreachRelevantFields0.getNeedNoFields() == false);
assertTrue(foreachRelevantFields0.getFields().size() == 1);
assertTrue(foreachRelevantFields0.getFields().get(0).first == 0);
assertTrue(foreachRelevantFields0.getFields().get(0).second == 0);
RequiredFields foreachRelevantFields1 = foreach.getRelevantInputs(0, 1).get(0);
assertTrue(foreachRelevantFields1.getNeedAllFields() == false);
assertTrue(foreachRelevantFields1.getNeedNoFields() == false);
assertTrue(foreachRelevantFields1.getFields().size() == 1);
assertTrue(foreachRelevantFields1.getFields().get(0).first == 0);
assertTrue(foreachRelevantFields1.getFields().get(0).second == 1);
RequiredFields foreachRelevantFields2 = foreach.getRelevantInputs(0, 2).get(0);
assertTrue(foreachRelevantFields2.getNeedAllFields() == false);
assertTrue(foreachRelevantFields2.getNeedNoFields() == false);
assertTrue(foreachRelevantFields2.getFields().size() == 1);
assertTrue(foreachRelevantFields2.getFields().get(0).first == 0);
assertTrue(foreachRelevantFields2.getFields().get(0).second == 1);
RequiredFields foreachRelevantFields3 = foreach.getRelevantInputs(0, 3).get(0);
assertTrue(foreachRelevantFields3.getNeedAllFields() == false);
assertTrue(foreachRelevantFields3.getNeedNoFields() == false);
assertTrue(foreachRelevantFields3.getFields().size() == 1);
assertTrue(foreachRelevantFields3.getFields().get(0).first == 0);
assertTrue(foreachRelevantFields3.getFields().get(0).second == 2);
RequiredFields foreachRelevantFields4 = foreach.getRelevantInputs(0, 4).get(0);
assertTrue(foreachRelevantFields4.getNeedAllFields() == false);
assertTrue(foreachRelevantFields4.getNeedNoFields() == false);
assertTrue(foreachRelevantFields4.getFields().size() == 1);
assertTrue(foreachRelevantFields4.getFields().get(0).first == 0);
assertTrue(foreachRelevantFields4.getFields().get(0).second == 2);
assertTrue(foreach.getRelevantInputs(0, 5) == null);
}