public void testJBossOnClassReferences() throws Exception
{
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
ObjectOutputStream objOut = new JBossObjectOutputStream(byteOut);
TestReferences obj1 = new TestReferences();
objOut.writeObject(obj1);
objOut.close();
ObjectInputStream input = new JBossObjectInputStream(new ByteArrayInputStream(byteOut.toByteArray()));
Object obj2 = input.readObject();
System.out.println("obj2=" + obj2);