@Test
public void testWriteCharWithWrongCombineLength() throws IOException {

    Assertions.assertThrows(IndexOutOfBoundsException.class, () -> {
        UnsafeStringWriter writer = new UnsafeStringWriter();
        char[] chars = new char[1];
        writer.write(chars, 1, 1);
    });
}