120
121
written = writeData(baout, ref, new int[] {5, 47, 33, 60, 1, 0, 8});
121
122
assertEquals(155, written);
122
123
checkStreams(baout, ref);
124
131
//Write the commons Byte[]OutputStream to a java.io.Byte[]OutputStream
125
132
//and vice-versa to test the writeTo() method.
126
133
ByteArrayOutputStream baout1 = new ByteArrayOutputStream(32);