@Test
    public void testPositives() throws IOException {
        testPositive(20);   // just enough
        testPositive(Integer.MAX_VALUE);
    }
This test demonstrates why we should call mark(Integer.MAX_VALUE) instead of
mark(-1).
aws-java-sdk-core/src/test/java/com/amazonaws/internal/BufferedInputStreamResetTest.java