XmlIO { public static <T> Write<T> write() { return new AutoValue_XmlIO_Write.Builder<T>().setCharset(StandardCharsets.UTF_8.name()).build(); }  static Read<T> read(); static ReadFiles<T> readFiles(); static Write<T> write(); static Sink<T> sink(Class<T> recordClass);  }
@Test public void testWriteDisplayData() { XmlIO.Write<Integer> write = XmlIO.<Integer>write().withRootElement("bird").withRecordClass(Integer.class); DisplayData displayData = DisplayData.from(write); assertThat(displayData, hasDisplayItem("rootElement", "bird")); assertThat(displayData, hasDisplayItem("recordClass", Integer.class)); }