@@ -0,0 +1,1904 @@
+package org.simpleframework.xml.load;%0D%0A%0D%0Aimport org.simpleframework.xml.Element;%0D%0Aimport org.simpleframework.xml.Serializer;%0D%0Aimport org.simpleframework.xml.ValidationTestCase;%0D%0A%0D%0Apublic class HierarchyTest extends ValidationTestCase %7B%0D%0A   %0D%0A   public static class Basic %7B%0D%0A      %0D%0A      @Element%0D%0A      private String a;%0D%0A      %0D%0A      @Element%0D%0A      private String b;%0D%0A      %0D%0A      private long one;%0D%0A      %0D%0A      private Basic() %7B%0D%0A         super();%0D%0A      %7D%0D%0A      %0D%0A      public Basic(long one, String a, String b) %7B%0D%0A         this.one = one;%0D%0A         this.a = a;%0D%0A         this.b = b;%0D%0A      %7D%0D%0A      %0D%0A      @Element%0D%0A      public long getOne() %7B%0D%0A         return one;%0D%0A      %7D%0D%0A      %0D%0A      @Element%0D%0A      public void setOne(long one) %7B%0D%0A         this.one = one;%0D%0A      %7D%0D%0A   %7D%0D%0A   %0D%0A   public static class Abstract extends Basic %7B%0D%0A      %0D%0A      @Element%0D%0A      private int c;%0D%0A      %0D%0A      private Abstract() %7B%0D%0A         super();%0D%0A      %7D%0D%0A      %0D%0A      public Abstract(long one, String a, String b, int c) %7B%0D%0A         super(one, a, b);%0D%0A         this.c = c;%0D%0A      %7D%0D%0A   %7D%0D%0A   %0D%0A   public static class Specialized extends Abstract %7B%0D%0A      %0D%0A      @Element%0D%0A      private int d;%0D%0A      %0D%0A      private double two;%0D%0A      %0D%0A      private Specialized() %7B%0D%0A         super();%0D%0A      %7D%0D%0A      %0D%0A      public Specialized(long one, double two, String a, String b, int c, int d) %7B%0D%0A         super(one, a, b, c);%0D%0A         this.two = two;%0D%0A         this.d = d;%0D%0A      %7D%0D%0A      %0D%0A      @Element%0D%0A      public double getTwo() %7B%0D%0A         return two;%0D%0A      %7D%0D%0A      %0D%0A      @Element%0D%0A      public void setTwo(double two) %7B%0D%0A         this.two = two;%0D%0A      %7D%0D%0A   %7D%0D%0A   %0D%0A   public void testHierarchy() throws Exception %7B%0D%0A      Serializer serializer = new Persister();%0D%0A      Specialized special = new Specialized(1L, 2.0, %22a%22, %22b%22, 1, 2);%0D%0A      %0D%0A      validate(special, serializer);%0D%0A   %7D%0D%0A%0D%0A%7D%0D%0A

Add test for hierarchy