@Test
public void shouldAllowCustomXStreamRetrieval() {

	RestfulSerialization serialization = new RestfulSerialization(null, null, null, null, null, XStreamBuilderImpl.cleanInstance()) {
		@Override
		protected XStream getXStream() {
			XStream xStream = super.getXStream();
			xStream.registerConverter(new MegaConverter());
			return xStream;
		}
	};
	XStream xstream = serialization.getXStream();
	Converter converter = xstream.getConverterLookup().lookupConverterForType(CustomType.class);
	assertThat(converter.getClass(), is(typeCompatibleWith(MegaConverter.class)));
	converter = xstream.getConverterLookup().lookupConverterForType(CustomNonHMType.class);
	assertThat(converter.getClass(), is(typeCompatibleWith(MegaConverter.class)));
}