@Test
public void testWrongLength() throws IOException {

    Assertions.assertThrows(IndexOutOfBoundsException.class, () -> {
        UnsafeStringReader reader = new UnsafeStringReader("abc");
        char[] chars = new char[1];
        reader.read(chars, 0, 2);
    });
}