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

    Map<String, Object> data = createNestedMapData();
    Record record =
        converter.convert(ImmutableMap.of("stma", ImmutableMap.of("key1", data, "key2", data)));

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