@Test
public void testNoHeaderFirstRowNoDuplicateValues() throws Exception {

    parser.setHeaderRow(false);
    try (InputStream is = toInputStream("HEAD_1,HEAD_2,HEAD_3\nr2v1,r2v2,r2v3\n")) {
        HiveTableSchema schema = toHiveTableSchema(is);
        List<? extends Field> fields = schema.getFields();
        assertTrue(fields.size() == 3);
        IntStream.range(0, fields.size()).forEach(idx -> {
            assertEquals(fields.get(idx).getName(), "Col_" + (idx + 1));
            assertEquals(fields.get(idx).getSampleValues().size(), 1);
        });
    }
}