@@ -0,0 +1,2275 @@
+package org.simpleframework.xml.convert;%0D%0A%0D%0Aimport org.simpleframework.xml.Default;%0D%0Aimport org.simpleframework.xml.Element;%0D%0Aimport org.simpleframework.xml.Root;%0D%0Aimport org.simpleframework.xml.Serializer;%0D%0Aimport org.simpleframework.xml.ValidationTestCase;%0D%0Aimport org.simpleframework.xml.core.Persister;%0D%0Aimport org.simpleframework.xml.stream.InputNode;%0D%0Aimport org.simpleframework.xml.stream.OutputNode;%0D%0A%0D%0Apublic class RegistryConverterTest extends ValidationTestCase %7B%0D%0A%0D%0A   public static class EnvelopeConverter implements Converter%3CEnvelope%3E %7B%0D%0A      private final Serializer serializer;%0D%0A      public EnvelopeConverter(Serializer serializer) %7B%0D%0A         this.serializer = serializer;%0D%0A      %7D%0D%0A      public Envelope read(InputNode node) throws Exception %7B%0D%0A         return serializer.read(Envelope.class, node);%0D%0A      %7D%0D%0A      public void write(OutputNode node, Envelope value) throws Exception %7B%0D%0A         serializer.write(value.getValue(), node);%0D%0A      %7D%0D%0A   %7D%0D%0A   %0D%0A   @Root%0D%0A   private static class OrderItem %7B%0D%0A      @Element%0D%0A      private Envelope envelope;%0D%0A      public OrderItem() %7B%0D%0A         super();%0D%0A      %7D%0D%0A      public OrderItem(String name, String address) %7B%0D%0A         this.envelope = new Envelope(new Customer(name, address));%0D%0A      %7D%0D%0A   %7D%0D%0A   %0D%0A   @Root%0D%0A   @Default%0D%0A   private static class Customer %7B%0D%0A      private String name;%0D%0A      private String address;%0D%0A      public Customer() %7B%0D%0A         super();%0D%0A      %7D%0D%0A      public Customer(String name, String address) %7B%0D%0A         this.name = name;%0D%0A         this.address = address;%0D%0A      %7D%0D%0A   %7D%0D%0A  %0D%0A   private static class Envelope %7B%0D%0A      private final Object value;%0D%0A      public Envelope(Object value) %7B%0D%0A         this.value = value;  %0D%0A      %7D%0D%0A      public Object getValue() %7B%0D%0A         return value;%0D%0A      %7D%0D%0A   %7D%0D%0A   %0D%0A   public void testConverter() throws Exception %7B%0D%0A      Registry registry = new Registry();%0D%0A      RegistryStrategy strategy = new RegistryStrategy(registry);%0D%0A      Serializer serializer = new Persister(strategy);%0D%0A      Converter converter = new EnvelopeConverter(serializer);%0D%0A      %0D%0A      registry.bind(Envelope.class, converter);%0D%0A      %0D%0A      OrderItem order = new OrderItem(%22Niall%22, %22Gallagher%22);%0D%0A      serializer.write(order, System.out);%0D%0A   %7D%0D%0A%7D%0D%0A

Add crap test