List<RequiredFields> loadaRequiredFields = loada.getRequiredFields();
assertTrue(loadaRequiredFields.size() == 1);
RequiredFields requiredField = loadaRequiredFields.get(0);
assertTrue(requiredField.needNoFields() == true);
assertTrue(requiredField.needAllFields() == false);
assertTrue(requiredField.getFields() == null);
//check that the foreach required fields contain [<0, 1>, <0, 3>, <0,2>]
LOForEach foreach = (LOForEach)lp.getLeaves().get(0);
List<RequiredFields> foreachRequiredFields = foreach.getRequiredFields();