BaseClass base = (BaseClass)proxy;
System.out.println("Result = "+ base.doSomething(1));
ByteArrayOutputStream byteout = new ByteArrayOutputStream();
JBossObjectOutputStream objout = new JBossObjectOutputStream(byteout);
objout.writeObject(proxy.getClass());
objout.flush();
SizeBenchmarkTestCase.saveFileNoCheck("/tmp/check.bin",byteout.toByteArray());
JBossObjectInputStream objectInput = new JBossObjectInputStream(new ByteArrayInputStream(byteout.toByteArray()));