objContext = new ObjectMessageContextImpl();
objContext.setMethod(paramModesClass.getMethod("testSingleInParam", params));
objContext.setMessageObjects((short)0);
bindingImpl.unmarshal(corbaContext,
objContext,
new JAXBDataBindingCallback(objContext.getMethod(),
DataBindingCallback.Mode.MESSAGE,
null));
Object[] resultArgs = objContext.getMessageObjects();
assertTrue(resultArgs.length == 1);
// Now try the call with a return type
corbaContext.put(ObjectMessageContext.MESSAGE_INPUT, false);
corbaContext.getMessage().setStreamableReturn(arg0);
objContext = new ObjectMessageContextImpl();
objContext.setMethod(paramModesClass.getMethod("testSingleInParamWithReturn", params));
objContext.setMessageObjects((short)0);
bindingImpl.unmarshal(corbaContext,
objContext,
new JAXBDataBindingCallback(objContext.getMethod(),
DataBindingCallback.Mode.MESSAGE,
null));
resultArgs = objContext.getMessageObjects();
assertTrue(resultArgs.length == 1);