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

    Record expected = GenericRecord.create(CUSTOMER_SCHEMA);
    expected.set(0, 1L);
    expected.set(1, "Bob");

    Record actual = deserializer.deserialize(new Object[] {new LongWritable(1L), new Text("Bob")});

    assertThat(actual).isEqualTo(expected);
  }