long recordingOffset(final long recordingId)
    {
        ensurePositive(recordingId, "recordingId");

        final long[] index = this.index;
        final int lastPosition = lastPosition();
        final int position = find(index, recordingId, lastPosition);
        if (position < 0)
        {
            return NULL_VALUE;
        }

        return index[position + 1];
    }
@Test
    void getThrowsIllegalArgumentExceptionIfRecordingIdIsNegative()
    {
        assertThrows(IllegalArgumentException.class, () -> catalogIndex.recordingOffset(-100));
    }