try {
InputStream s1 = createTestInputStream();
ris = new RereadableInputStream(s1, 5, readToEndOnRewind, true);
ris.read();
assertEquals(1, ris.getSize());
ris.rewind();
boolean moreBytesWereRead = (ris.getSize() > 1);
assertEquals(readToEndOnRewind, moreBytesWereRead);
} finally {
if (ris != null) {
ris.close();