@@ -0,0 +1,2027 @@
+package org.simpleframework.xml.core;%0A%0Aimport org.simpleframework.xml.Attribute;%0Aimport org.simpleframework.xml.Root;%0Aimport org.simpleframework.xml.Text;%0Aimport org.simpleframework.xml.ValidationTestCase;%0Aimport org.simpleframework.xml.transform.Matcher;%0Aimport org.simpleframework.xml.transform.Transform;%0A%0Apublic class LiteralTest extends ValidationTestCase %7B%0A%0A   @Root(strict=false)%0A   private static class LiteralExample %7B%0A      %0A      @Attribute%0A      private String name;%0A      %0A      @Attribute%0A      private String key;%0A      %0A      @Text(required=false)%0A      private final Literal literal = new Literal(%0A      %22%3Cliteral id='a' value='a'%3E%5Cn%22+%0A      %22   %3Cchild%3Esome example text%3C/child%3E%5Cn%22+%0A      %22%3C/literal%3E%5Cn%22);%0A      %0A      private LiteralExample() %7B%0A         super();%0A      %7D%0A      %0A      public LiteralExample(String name, String key) %7B%0A         this.name = name;%0A         this.key = key;%0A      %7D%0A      %0A      public String getName() %7B%0A         return name;%0A      %7D%0A   %7D%0A   %0A   private static class LiteralMatcher implements Matcher %7B%0A      %0A      public Transform match(Class type) %7B%0A         if(type == Literal.class) %7B%0A            return new LiteralTransform();%0A         %7D%0A         return null;%0A      %7D%0A   %7D%0A   %0A   private static class LiteralTransform implements Transform %7B%0A%0A      public Object read(String value) throws Exception %7B%0A         return new Literal(value);%0A      %7D%0A%0A      public String write(Object value) throws Exception %7B%0A         return value.toString();%0A      %7D%0A   %7D%0A   %0A   private static class Literal %7B%0A      %0A      private final String content;%0A      %0A      public Literal(String content) %7B%0A         this.content = content;%0A      %7D%0A      %0A      public String toString() %7B%0A         return content;%0A      %7D%0A   %7D%0A   %0A   %0A   public void testLiteral() throws Exception %7B%0A      Matcher matcher = new LiteralMatcher();%0A      Persister persister = new Persister(matcher);%0A      LiteralExample example = new LiteralExample(%22name%22, %22key%22);%0A      %0A      persister.write(example, System.out);%0A   %7D%0A%7D%0A

Add the literal test