public void flush() {
        try {
            out.flush();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
@Test
    void flush() {
        out.append("Hello");
        assertThat(bytes, bytes(equalTo("")));
        out.flush();
        assertThat(bytes, bytes(equalTo("Hello")));
    }