@Test
void detectColumnTypes() {

  String[][] val = {{"", "2010-05-03", "x"}, {"", "", ""}};
  ArrayList<String[]> dates = Lists.newArrayList(val);
  ColumnTypeDetector detector =
      new ColumnTypeDetector(
          Lists.newArrayList(
              LOCAL_DATE_TIME,
              LOCAL_TIME,
              LOCAL_DATE,
              BOOLEAN,
              SHORT,
              INTEGER,
              LONG,
              FLOAT,
              DOUBLE,
              STRING,
              TEXT));
  ColumnType[] types =
      detector.detectColumnTypes(dates.iterator(), new ReadOptions.Builder().build());
  assertEquals(TextColumnType.instance(), types[0]);
  assertEquals(DateColumnType.instance(), types[1]);
  assertEquals(StringColumnType.instance(), types[2]);
}