tree.addPredicate( "3", "6", new LessOrEqualThanPredicate( "var1", 0.5d ), "0" );
tree.addPredicate( "3", "7", new GreaterThanPredicate( "var1", 0.5d ), "1" );
treeSpec.setTree( tree );
TreeFunction treeFunction = new TreeFunction( treeSpec );
TupleEntry tupleArguments = new TupleEntry( expectedFields, new Tuple( 0d, 1d, 0d ) );
TupleListCollector collector = invokeFunction( treeFunction, tupleArguments, predictedFields );