@Test
public void testSkip() throws IOException {

  // Skip values <= 0 should always produce 0 and not actually skip anything.
  Assert.assertEquals(0, stream.skip(-1));
  Assert.assertEquals(0, stream.skip(0));
  // Skip the first 5 bytes and read the 6th, which should have the value 5.
  Assert.assertEquals(5, stream.skip(5));
  Assert.assertEquals(5, stream.read());
  // 6 bytes have been read, so the max skip is testDataLength - 6. Ensure this is true.
  Assert.assertEquals(testData.length - 5 - 1, stream.skip(testData.length));
  // At the end of the file, skip should always return 0.
  Assert.assertEquals(0, stream.skip(17));
}