@Override
    public int writerIndex() {
        return writerIndex;
    }
@Test
    public void writerIndexBoundaryCheck1() {
        assertThrows(IndexOutOfBoundsException.class, new Executable() {
            @Override
            public void execute() {
                buffer.writerIndex(-1);
            }
        });
    }