    @Test public void readBounds() throws Exception {

        FileOperator operator = new FileOperator(randomAccessFile.getChannel());
        Buffer buffer = new Buffer();
        try {
            operator.read(0, buffer, -1L);
            fail();
        } catch (IndexOutOfBoundsException ignored) {
        }
    }