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

    Struct data = createStructData();
    Record record = converter.convert(data);
    assertRecordValues(record);
  }