public void testComplexDocument() throws RemoteException {
// Create the input
ComplexDocument input = (ComplexDocument) dataFactory.create(ComplexDocument.class);
input.setAnAttribute("789");
ChildDocument childDocument = (ChildDocument) dataFactory.create(ChildDocument.class);
SimpleDocument simpleDocument = (SimpleDocument) dataFactory.create(SimpleDocument.class);
;
SimpleDocument1 simpleDocument1 = (SimpleDocument1) dataFactory.create(SimpleDocument1.class);
;
simpleDocument.setSimpleDocument(simpleDocument1);
simpleDocument1.setValue("456");
ArrayOfSimpleDocument arrayOfSimpleDocument = (ArrayOfSimpleDocument) dataFactory.create(ArrayOfSimpleDocument.class);
;
arrayOfSimpleDocument.getSimpleDocument().add(simpleDocument1);
childDocument.setChildSimpleDoc(arrayOfSimpleDocument);
input.setChild(childDocument);
// Invoke the service
ComplexDocument output = interopDoc.ComplexDocument(input);