public static SqlToConnectTypeConverter sqlToConnectConverter() {
    return SQL_TO_CONNECT_CONVERTER;
  }
@Test
  public void shouldConvertNestedUnionTypeFromSqlToConnect() {
    // Given:
    SqlStruct inner = SqlStruct.builder()
        .field("io.confluent.connect.json.OneOf.field.0", SqlPrimitiveType.of(SqlBaseType.STRING))
        .field("io.confluent.connect.json.OneOf.field.1", SqlPrimitiveType.of(SqlBaseType.BOOLEAN))
        .field("io.confluent.connect.json.OneOf.field.2", SqlPrimitiveType.of(SqlBaseType.INTEGER))
        .build();

    SqlStruct outer = SqlStruct.builder()
        .field("foo", inner)
        .field("bar", SqlPrimitiveType.of(SqlBaseType.BOOLEAN))
        .field("baz", SqlPrimitiveType.of(SqlBaseType.INTEGER))
        .build();

    // When:
    Schema connectSchema = sqlToConnectConverter().toConnectSchema(outer);
    Schema fooSchema = connectSchema.field("foo").schema();

    // Then:
    assertThat(connectSchema.type(), is(Schema.Type.STRUCT));
    assertNull(connectSchema.schema().name());
    assertThat(fooSchema.type(), is(Schema.Type.STRUCT));
    assertEquals(JSON_TYPE_ONE_OF, fooSchema.schema().name());
  }