Record deserialize(Object data) {
    return (Record) fieldDeserializer.value(data);
  }
@Test
  public void testNullDeserialize() {
    Deserializer deserializer =
        new Deserializer.Builder()
            .schema(HiveIcebergTestUtils.FULL_SCHEMA)
            .writerInspector(
                (StructObjectInspector)
                    IcebergObjectInspector.create(HiveIcebergTestUtils.FULL_SCHEMA))
            .sourceInspector(HiveIcebergTestUtils.FULL_SCHEMA_OBJECT_INSPECTOR)
            .build();

    Record expected = HiveIcebergTestUtils.getNullTestRecord();

    Object[] nulls = new Object[HiveIcebergTestUtils.FULL_SCHEMA.columns().size()];
    Arrays.fill(nulls, null);

    Record actual = deserializer.deserialize(nulls);

    assertThat(actual).isEqualTo(expected);

    // Check null record as well
    assertThat(deserializer.deserialize(null)).isNull();
  }