System.arraycopy(bufferCopy, 4, toMatch, 0, sourceMatch.length);
assertTrue("Buffer size should be 9",
bufferCopy.length == (4 + 1 + length(source)));
CDRInputStream cdrin = (CDRInputStream) cdrOutputStream.create_input_stream();
String result = cdrin.read_string();
assertTrue("Strings should match", source.equals(result));
Assert.assertArrayEquals(sourceMatch, result.getBytes("utf-8"));
Assert.assertArrayEquals(sourceMatch, toMatch);