public void testShouldOutputNull() {
NullConverter serializer = new NullConverter();
assertEquals("<null></null>", marshal(serializer, null));
assertTrue(serializer.canConvert(null));
assertFalse(serializer.canConvert(ArrayList.class));
}
public void testShouldOutputString() {
StringConverter serializer = new StringConverter();
assertEquals("<string>hello, world</string>", marshal(serializer, "hello, world"));