@Test
    public void doReadAfterCloseTest() throws IOException {
        TestInputStream tis = createTestInputStream(DEFAULT_TEST_SIZE);
        RereadableInputStream ris = new RereadableInputStream(tis, DEFAULT_TEST_SIZE);
        ris.close();
        assertThrows(IOException.class, () -> {
            ris.read();
        });
    }
Read increasingly more of the stream, but not all, with each pass before rewinding to
make sure we pick up at the correct point
tika-core/src/test/java/org/apache/tika/TestRereadableInputStream.java