@Test
void standard() throws IOException {

    final String contents = UUID.randomUUID()
        .toString();
    final InputStream s = new ByteArrayInputStream(contents.getBytes());
    try (final InterceptingInputStream s2 = new InterceptingInputStream(s)) {
        // first check content has been intercepted
        assertThat(s2.getContents()).isEqualTo(contents);
        // then check content is still available
        assertThat(StringUtil.toString(s2)).isEqualTo(contents);
    }
}