ControlBlock.LIST_BEGIN, "yes", "no", ControlBlock.LIST_END,
ControlBlock.LIST_END
});
activity.addInput(BuildClassifierActivity.INPUT_NOMINAL_VALUES, nominalValuesInput);
MockOutputPipe output = new MockOutputPipe(new Object[] {});
activity.addOutput(BuildClassifierActivity.CLASSIFIER_OUTPUT, output);
activity.process();
TupleClassifier classifier = (TupleClassifier)output.getActualBlocks().get(0);
// System.out.println(classifier);
ClassifyActivity classify = new ClassifyActivity();
MockInputPipe inputClassifier = new MockInputPipe(classifier);
classify.addInput(ClassifyActivity.INPUT_CLASSIFIER, inputClassifier);
MockInputPipe inputData = new MockInputPipe(buildInputTable().toArray());
classify.addInput(ClassifyActivity.INPUT_DATA, inputData);
MockInputPipe inputResultColumnName = new MockInputPipe("myResult");
classify.addInput(ClassifyActivity.INPUT_RESULT_COLUMN_NAME, inputResultColumnName);
MockOutputPipe outputClassify = new MockOutputPipe(new Object[] {});
classify.addOutput(ClassifyActivity.OUTPUT, outputClassify);
classify.process();
List<?> actualBlocks = outputClassify.getActualBlocks();
assertEquals(input.size(), actualBlocks.size());
TupleMetadata tupleMetadata = (TupleMetadata)((MetadataWrapper)actualBlocks.get(1)).getMetadata();
assertEquals("myResult", tupleMetadata.getColumnMetadata(0).getName());
assertEquals(ControlBlock.LIST_BEGIN, actualBlocks.get(0));
for (int i=2; i<actualBlocks.size()-1; i++)