public static Read read(Schema schema) {
    return new AutoValue_ParquetIO_Read.Builder()
        .setSchema(schema)
        .setInferBeamSchema(false)
        .build();
  }
@Test
  public void testReadDisplayData() {
    Configuration configuration = new Configuration();
    configuration.set("parquet.foo", "foo");
    DisplayData displayData =
        DisplayData.from(
            ParquetIO.read(SCHEMA)
                .from("foo.parquet")
                .withProjection(REQUESTED_SCHEMA, SCHEMA)
                .withAvroDataModel(GenericData.get())
                .withConfiguration(configuration));

    assertThat(displayData, hasDisplayItem("filePattern", "foo.parquet"));
    assertThat(displayData, hasDisplayItem("schema", SCHEMA.toString()));
    assertThat(displayData, hasDisplayItem("inferBeamSchema", false));
    assertThat(displayData, hasDisplayItem("projectionSchema", REQUESTED_SCHEMA.toString()));
    assertThat(displayData, hasDisplayItem("avroDataModel", GenericData.get().toString()));
    assertThat(displayData, hasDisplayItem("parquet.foo", "foo"));
  }