@Override
    public long getPosition() throws IOException
    {
        checkClosed();
        return currentPosition;
    }
@Test
    void testPositionSkip() 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());
            assertEquals(10, randomAccessReadView.peek());
            randomAccessReadView.skip(5);
            assertEquals(5, randomAccessReadView.getPosition());
            assertEquals(15, randomAccessReadView.peek());
        }
    }