Endpoint iSender, Endpoint iReceiver, String oId) throws Exception
{
Object params[] = new Object[]{new String[]{"inString"}};
iSender.writeRequest(
oId, TypeDescription.getTypeDescription(TestXInterface.class),
"methodWithInOutParameter", new ThreadId(new byte[] { 0, 1 }),
params);
Message iMessage = iReceiver.readMessage();
Object[] t_params = iMessage.getArguments();
assertEquals("inString", ((String [])t_params[0])[0]);
// provide reply
((String [])t_params[0])[0] = "outString";
// send an exception as reply
iReceiver.writeReply(false, new ThreadId(new byte[] { 0, 1 }), null);
iSender.readMessage();
assertEquals("outString", ((String [])params[0])[0]);
}