private void runTwoFieldTest(String streamName, String leftFieldName, String rightFieldName,
String query, boolean checkLeft, boolean checkRight)
throws IOException, InterruptedException {
MemStreamBuilder streamBuilder = new MemStreamBuilder(streamName);
streamBuilder.addField(new TypedField(leftFieldName, Type.getPrimitive(Type.TypeName.INT)));
streamBuilder.addField(new TypedField(rightFieldName, Type.getPrimitive(Type.TypeName.INT)));
streamBuilder.addEvent("1,-1");
streamBuilder.addEvent("2,-2");
streamBuilder.addEvent("3,-3");
StreamSymbol stream = streamBuilder.build();
getSymbolTable().addSymbol(stream);