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

    Map<String, Object> nestedData = createNestedMapData();
    Map<String, Object> map = ImmutableMap.of("stli", ImmutableList.of(nestedData, nestedData));
    SchemaUpdate.Consumer consumer = new SchemaUpdate.Consumer();
    converter.convert(map, consumer);
    Collection<AddColumn> addCols = consumer.addColumns();

    assertThat(addCols).hasSize(1);

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

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