byte[] expected = ("<map><element><k><str>foo</str></k><v><str>aaaaa</str></v></element>"
+ "<element><k><str>bar</str></k><v><str>zzzzz</str></v></element></map>")
.getBytes();
ByteArrayOutputStream out = new ByteArrayOutputStream();
wrapper.marshal(out);
assertEquals(expected, out.toByteArray());
// test conversionScore() method
assert ConversionScore.exact == wrapper.conversionScore(Map.class);
assert ConversionScore.exact == wrapper.conversionScore(HashMap.class);