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

    Struct data = createNestedStructData();
    Struct struct =
        new Struct(CONNECT_STRUCT_IN_MAP_SCHEMA)
            .put("stma", ImmutableMap.of("key1", data, "key2", data));
    Record record = converter.convert(struct);

    Map<?, ?> fieldVal = (Map<?, ?>) record.getField("stma");
    Record mapVal = (Record) fieldVal.get("key1");
    assertNestedRecordValues(mapVal);
  }