@Test
public void testAppendAuxiliaryData() throws Exception {

    List<String> stringList = new ArrayList<>();
    stringList.add("apple");
    stringList.add("banana");
    MockCollector collector = new MockCollector();
    ModelConverterUtils.appendAuxiliaryData(stringList, collector, 3);
    Row row1 = collector.buffer.get(0);
    Assert.assertEquals(row1.getArity(), 3);
    Assert.assertEquals(row1.getField(0), Integer.MAX_VALUE * ModelConverterUtils.MAX_NUM_SLICES);
    Assert.assertEquals(row1.getField(2), "apple");
    Row row2 = collector.buffer.get(1);
    Assert.assertEquals(row2.getArity(), 3);
    Assert.assertEquals(row2.getField(0), Integer.MAX_VALUE * ModelConverterUtils.MAX_NUM_SLICES + 1L);
    Assert.assertEquals(row2.getField(2), "banana");
}