@Test
public void testReadEmptyByteArray() {

    Assertions.assertThrows(NullPointerException.class, () -> {
        UnsafeByteArrayInputStream stream = new UnsafeByteArrayInputStream("abc".getBytes());
        stream.read(null, 0, 1);
    });
}