@Test
public void _toString() {

    ByteArray ba;
    ba = new ByteArray(data);
    assertEquals("byte[10]", ba.toString());
    ba = new ByteArray(data, 1, Integer.MIN_VALUE);
    assertEquals("byte[9]", ba.toString());
    ba = new ByteArray(data, 0, 10);
    assertEquals("byte[10]", ba.toString());
    ba = new ByteArray(data, 1, 9);
    assertEquals("byte[9]", ba.toString());
    ba = new ByteArray(data, 1, 0);
    assertEquals("byte[0]", ba.toString());
}