public void testSkipBytesIntMaxValue() throws IOException {
ArrayInputStream ais = new ArrayInputStream(new byte[1000]);
assertEquals(1000, ais.skipBytes(Integer.MAX_VALUE));
assertEquals(1000, ais.getPosition());
ais.setPosition(1);
assertEquals(999, ais.skipBytes(Integer.MAX_VALUE));
assertEquals(1000, ais.getPosition());
}
/**
* Test that skip() returns 0 when the argument is negative (DERBY-3739).