}
public void testCustomConverterCanBeInstantiatedAndRegisteredWithDesiredPriority() {
XStream xstream = new XStream(new XppDriver());
// using default mapper instead of XStream#buildMapper()
Mapper mapper = new DefaultMapper(new CompositeClassLoader());
// AttributeMapper required by ReflectionConverter
mapper = new AttributeMapper(mapper, xstream.getConverterLookup(), xstream.getReflectionProvider());
Converter converter = new CustomReflectionConverter(mapper, new PureJavaReflectionProvider());
xstream.registerConverter(converter, -20);
xstream.alias("world", World.class);