@Test
public void testWrongLength() {

    Assertions.assertThrows(IndexOutOfBoundsException.class, () -> {
        UnsafeByteArrayInputStream stream = new UnsafeByteArrayInputStream("abc".getBytes());
        stream.read(new byte[1], 0, 100);
    });
}