@Test
public void testResultRow() {

    OutputColsHelper helper = new OutputColsHelper(
        tableSchema, "res", TypeInformation.of(String.class)
    );
    Row expectRow = Row.of("a", 1L, 1, "b");
    Assert.assertEquals(helper.getResultRow(row, Row.of("b")), expectRow);
    helper = new OutputColsHelper(
        tableSchema, new String[]{"res1", "res2"},
        new TypeInformation[]{
            TypeInformation.of(String.class),
            TypeInformation.of(Integer.class)
        }
    );
    expectRow = Row.of("a", 1L, 1, "b", 2);
    Assert.assertEquals(helper.getResultRow(row, Row.of("b", 2)), expectRow);
    helper = new OutputColsHelper(
        tableSchema, new String[]{"res", "f0"},
        new TypeInformation[]{
            TypeInformation.of(Integer.class),
            TypeInformation.of(String.class)
        },
        reservedColNames
    );
    expectRow = Row.of("b", 2);
    Assert.assertEquals(helper.getResultRow(row, Row.of(2, "b")), expectRow);
}