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

    Map<String, Object> data = createNestedMapData();
    Record record = converter.convert(ImmutableMap.of("stli", ImmutableList.of(data, data)));
    List<?> fieldVal = (List<?>) record.getField("stli");

    Record elementVal = (Record) fieldVal.get(0);
    assertNestedRecordValues(elementVal);
  }