@@ -0,0 +1,1512 @@
+package org.simpleframework.xml.core;%0A%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.ObjectInputStream;%0Aimport java.io.ObjectOutputStream;%0Aimport java.io.ObjectStreamClass;%0Aimport java.io.Serializable;%0Aimport java.lang.reflect.Method;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class ObjectStreamClassTest extends TestCase %7B%0A   %0A   public static class Tuple implements Serializable%7B%0A      private String name;%0A      private String value;%0A      public Tuple(String name, String value) %7B%0A         this.name = name;%0A         this.value = value;%0A      %7D%0A   %7D%0A   public void testObjectStreamTest() throws Exception %7B%0A      ByteArrayOutputStream out = new ByteArrayOutputStream();%0A      ObjectOutputStream oout = new ObjectOutputStream(out);%0A      Tuple tuple = new Tuple(%22a%22, %22b%22);%0A      %0A      oout.writeObject(tuple);%0A      byte%5B%5D array = out.toByteArray();%0A      ByteArrayInputStream in = new ByteArrayInputStream(array);%0A      ObjectInputStream oin = new ObjectInputStream(in);%0A      %0A      tuple = (Tuple)oin.readObject();%0A   %7D%0A   %0A   public void testInstantiation() throws Exception %7B%0A      ObjectStreamClass factory = ObjectStreamClass.lookup(Tuple.class);%0A      Method method = ObjectStreamClass.class.getDeclaredMethod(%22newInstance%22);%0A      %0A      if(!method.isAccessible()) %7B%0A         method.setAccessible(true);%0A      %7D%0A      Tuple tuple = (Tuple)method.invoke(factory);%0A      %0A      assertEquals(tuple.name, null);%0A      assertEquals(tuple.value, null);%0A   %7D%0A%0A%7D%0A

Update the object stream test