@Test
public void io_bytes() throws IOException {

    test(new CB() {
        public void run(boolean close) throws IOException {
            BAIS in = new BAIS(bytes);
            BAOS out = new BAOS();
            StreamUtil.io(in, out, close, close);
            assertArrayEquals(bytes, out.toByteArray());
            in.assertClosed(close);
            out.assertClosed(close);
        }
    });
}