@Override
    public long getPosition() throws IOException
    {
        checkClosed();
        return currentPosition;
    }
@Test
    void testPositionPeek() throws IOException
    {
        byte[] values = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
                20 };
        try (RandomAccessReadBuffer randomAccessSource = 
                new RandomAccessReadBuffer(new ByteArrayInputStream(values));
             RandomAccessReadView randomAccessReadView = 
                new RandomAccessReadView(randomAccessSource, 10, 20))
        {
            assertEquals(0, randomAccessReadView.getPosition());
            randomAccessReadView.skip(6);
            assertEquals(6, randomAccessReadView.getPosition());
            
            assertEquals(16, randomAccessReadView.peek());
            assertEquals(6, randomAccessReadView.getPosition());
        }
    }