public void testComplexDocument() throws RemoteException {
assertNotNull(interopDoc);
// 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);
// Test the results
assertNotNull(output);
assertEquals("789", output.getAnAttribute());
assertNotNull(output.getChild());
assertNotNull(output.getChild().getChildSimpleDoc());
// FIXME Add more tests of the output document
}