@Test
public void testGetPosition() throws IOException {

  stream = new RandomAccessFileInputStream(tempFile, 5, 2);
  Assert.assertEquals(5, stream.getPosition());
  stream.read();
  Assert.assertEquals(6, stream.getPosition());
  stream.setRange(0, 1);
  Assert.assertEquals(0, stream.getPosition());
}