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

    Struct nestedData = createNestedStructData();
    Struct struct =
        new Struct(CONNECT_STRUCT_IN_MAP_SCHEMA)
            .put("stma", ImmutableMap.of("key1", nestedData, "key2", nestedData));
    SchemaUpdate.Consumer consumer = new SchemaUpdate.Consumer();
    converter.convert(struct, consumer);
    Collection<AddColumn> addCols = consumer.addColumns();

    assertThat(addCols).hasSize(1);

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

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