Record convert(Object data) {
    return convert(data, null);
  }
@Test
  public void testMissingColumnDetectionStructNested() {
    Table table = mock(Table.class);
    when(table.schema()).thenReturn(ID_SCHEMA);
    RecordConverter converter = new RecordConverter(table, config);

    Struct nestedData = createNestedStructData();
    SchemaUpdate.Consumer consumer = new SchemaUpdate.Consumer();
    converter.convert(nestedData, consumer);
    Collection<AddColumn> addCols = consumer.addColumns();

    assertThat(addCols).hasSize(1);

    AddColumn addCol = addCols.iterator().next();
    assertThat(addCol.name()).isEqualTo("st");

    StructType addedType = addCol.type().asStructType();
    assertThat(addedType.fields()).hasSize(MAPPED_CNT);
    assertTypesAddedFromStruct(col -> addedType.field(col).type());
  }