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

    Struct data = createStructData();
    SchemaUpdate.Consumer consumer = new SchemaUpdate.Consumer();
    converter.convert(data, consumer);
    Collection<AddColumn> addCols = consumer.addColumns();

    assertThat(addCols).hasSize(MAPPED_CNT);

    Map<String, AddColumn> newColMap = Maps.newHashMap();
    addCols.forEach(addCol -> newColMap.put(addCol.name(), addCol));

    assertTypesAddedFromStruct(col -> newColMap.get(col).type());
  }