private IcebergTimeObjectInspector() {
    super(TypeInfoFactory.stringTypeInfo);
  }
@Test
  public void testIcebergTimeObjectInspector() {

    IcebergTimeObjectInspector oi = IcebergTimeObjectInspector.get();

    assertThat(oi.getCategory()).isEqualTo(ObjectInspector.Category.PRIMITIVE);
    assertThat(oi.getPrimitiveCategory())
        .isEqualTo(PrimitiveObjectInspector.PrimitiveCategory.STRING);

    assertThat(oi.getTypeInfo()).isEqualTo(TypeInfoFactory.stringTypeInfo);
    assertThat(oi.getTypeName()).isEqualTo(TypeInfoFactory.stringTypeInfo.getTypeName());

    assertThat(oi.getJavaPrimitiveClass()).isEqualTo(String.class);
    assertThat(oi.getPrimitiveWritableClass()).isEqualTo(Text.class);

    assertThat(oi.copyObject(null)).isNull();
    assertThat(oi.getPrimitiveJavaObject(null)).isNull();
    assertThat(oi.getPrimitiveWritableObject(null)).isNull();
    assertThat(oi.convert(null)).isNull();

    LocalTime localTime = LocalTime.now();
    String time = localTime.toString();
    Text text = new Text(time);

    assertThat(oi.getPrimitiveJavaObject(text)).isEqualTo(time);
    assertThat(oi.getPrimitiveWritableObject(time)).isEqualTo(text);
    assertThat(oi.convert(time)).isEqualTo(localTime);

    Text copy = (Text) oi.copyObject(text);

    assertThat(copy).isEqualTo(text);
    assertThat(copy).isNotSameAs(text);

    assertThat(oi.preferWritable()).isFalse();
  }