@Test
public void testReadCharArrayIntInt() throws IOException {

    String s = "ABCDEFG1234--ABCDEFG1234--ABCDEFG1234--12345";
    ByteArray ba = new ByteArray(s.length());
    ba.write(s, 0);
    read(s, ba);
    ba = new ByteArray(s.length(), ByteArray.EBCDIC_CHARSET_NAME);
    ba.write(s, 0);
    read(s, ba);
}