public static List<ColumnType> columnTypesFromStrings(final List<String> columnTypes) {
    return columnTypes.stream().map(RowUtil::columnTypeFromString).collect(Collectors.toList());
  }
@Test
  public void shouldGetColumnTypesFromStrings() {
    // Given
    final List<String> stringTypes = ImmutableList.of(
        "STRING",
        "INTEGER",
        "BIGINT",
        "BOOLEAN",
        "DOUBLE",
        "ARRAY<STRING>",
        "MAP<STRING, STRING>",
        "DECIMAL(4, 2)",
        "STRUCT<`F1` STRING, `F2` INTEGER>",
        "TIMESTAMP",
        "DATE",
        "TIME"
    );

    // When
    final List<ColumnType> columnTypes = RowUtil.columnTypesFromStrings(stringTypes);

    // Then
    assertThat(
        columnTypes.stream()
            .map(t -> t.getType().toString())
            .collect(Collectors.toList()),
        contains(
            "STRING",
            "INTEGER",
            "BIGINT",
            "BOOLEAN",
            "DOUBLE",
            "ARRAY",
            "MAP",
            "DECIMAL",
            "STRUCT",
            "TIMESTAMP",
            "DATE",
            "TIME"
    ));
  }