public static String read(Reader reader) throws IOException {
        try (StringWriter writer = new StringWriter()) {
            write(reader, writer);
            return writer.getBuffer().toString();
        }
    }
@Test
    void testRead() throws Exception {
        assertThat(IOUtils.read(reader), equalTo(TEXT));
    }