Operation operation = this.service.getOperation("method1");
// get objects after serialization and deserialization.
// this returned objects mustbe identical with the original array list elements
List inputObjects = new ArrayList();
ChildClass childClass = new ChildClass();
childClass.setParam1("test param1");
childClass.setParam2(5);
childClass.setParam3(23.45f);
childClass.setParam4(34.5);
inputObjects.add(childClass);
Object[] objects = getInputObject(inputObjects, operation);
ChildClass object = (ChildClass) operation.getJavaMethod().invoke(this.serviceObject, objects);
ChildClass returnObject = (ChildClass) getReturnObject(object, operation);
assertEquals(returnObject.getParam1(),"test param1");
assertEquals(returnObject.getParam2(),5);
assertTrue(childClass.getParam3() == 23.45f);
assertTrue(childClass.getParam4() == 34.5);
} catch (Exception e) {
fail();
}