private IcebergFixedObjectInspector() {
    super(TypeInfoFactory.binaryTypeInfo);
  }
@Test
  public void testIcebergFixedObjectInspector() {
    IcebergFixedObjectInspector oi = IcebergFixedObjectInspector.get();

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

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

    assertThat(oi.getJavaPrimitiveClass()).isEqualTo(byte[].class);
    assertThat(oi.getPrimitiveWritableClass()).isEqualTo(BytesWritable.class);

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

    byte[] bytes = new byte[] {0, 1};
    BytesWritable bytesWritable = new BytesWritable(bytes);

    assertThat(oi.getPrimitiveJavaObject(bytes)).isEqualTo(bytes);
    assertThat(oi.getPrimitiveWritableObject(bytes)).isEqualTo(bytesWritable);
    assertThat(oi.convert(bytes)).isEqualTo(bytes);

    byte[] copy = (byte[]) oi.copyObject(bytes);

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

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