public class TestServiceInvocationStruct extends TestCase {
public void testSerialize() throws Exception {
ServiceInvocationStruct struct = new ServiceInvocationStruct(new Object[] {new Integer(1), "hello"}, "doSomething", TestServiceInvocationStruct.class);
Object serialized = UnitTestUtil.helpSerialize(struct);
assertNotNull(serialized);
assertTrue(serialized instanceof ServiceInvocationStruct);
ServiceInvocationStruct copy = (ServiceInvocationStruct)serialized;
assertTrue(Arrays.equals(struct.args, copy.args));
assertEquals(struct.methodName, copy.methodName);
assertEquals(struct.targetClass, copy.targetClass);
}