public void testClientCall() throws Exception
{
ObjectOutput output = new JBossObjectOutputStream(socket.getOutputStream());
ObjectInput input = new JBossObjectInputStream((socket.getInputStream()));
TestProxy proxy = TestProxy.createTestInstance();
output.writeObject(proxy);
output.flush();
Integer obj = (Integer)input.readObject();
System.out.println("response: " + obj);
assertEquals(proxy.getProxy().doSomething(),obj.intValue());