{
ColumnMetadata col = new SimpleColumnMetadata("class", TupleTypes._STRING, 0,0,0);
TupleMetadata metadata = new SimpleTupleMetadata(Collections.singletonList(col));
MockInputPipe inputExpected = new MockInputPipe(new Object[] {
ControlBlock.LIST_BEGIN,
new MetadataWrapper(metadata),
new SimpleTuple(Arrays.asList("yes")),
new SimpleTuple(Arrays.asList("no")),
ControlBlock.LIST_END
});
MockInputPipe inputPredicted = new MockInputPipe(new Object[] {
ControlBlock.LIST_BEGIN,
new MetadataWrapper(metadata),
new SimpleTuple(Arrays.asList("yes")),
ControlBlock.LIST_END
});
EvaluateActivity activity = new EvaluateActivity();
activity.addInput(EvaluateActivity.INPUT_EXPECTED, inputExpected);