assertEquals(6,proxy2.doSomething());
}
public void testJBossSerialization() throws Exception
{
InterfaceForProxy proxy = createProxy();
assertEquals(6,proxy.doSomething());
ByteArrayOutputStream byteout = new ByteArrayOutputStream();
JBossObjectOutputStream out = new JBossObjectOutputStream (byteout);
out.writeObject(proxy);
out.flush();
JBossObjectInputStream inp = new JBossObjectInputStream (new ByteArrayInputStream(byteout.toByteArray()));
InterfaceForProxy proxy2 = (InterfaceForProxy)inp.readObject();
assertEquals(6,proxy2.doSomething());
}