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