.toString());
assert value.equals(((StringBuffer) wrapper.convert(StringBuffer.class))
.toString());
ByteArrayOutputStream out = new ByteArrayOutputStream();
wrapper.marshal(out);
byte[] expected = ("<str>"
+ URLEncoder.encode(value, StringWrapper.DEFAULT_ENCODING) + "</str>")
.replace("+", "%20").getBytes();
assertEquals(expected, out.toByteArray());