@Override
  public <T> @NonNull Schema schemaFor(TypeDescriptor<T> typeDescriptor) {
    return schemaFor(typeDescriptor.getRawType());
  }
@Test
  public void testUnionSchema() {
    final Schema schema = defaultSchemaProvider.schemaFor(TypeDescriptor.of(TestThriftUnion.class));
    assertNotNull(schema);
    assertEquals(TypeName.LOGICAL_TYPE, schema.getField("camelCaseEnum").getType().getTypeName());
    assertEquals(
        EnumerationType.IDENTIFIER,
        schema.getField("camelCaseEnum").getType().getLogicalType().getIdentifier());
    assertEquals(TypeName.ROW, schema.getField("snake_case_nested_struct").getType().getTypeName());
  }