assertEquals(obj.toString(), "InvokedSerializedForm[Test, DynamicExamplePrimitive, 42.0]");
assertEquals(obj.readReplace(), "dynamic-prefixed-primitive-arg-42.0");
}
public void testObjectArgStaticMethod() {
InvokedSerializedForm obj = new InvokedSerializedForm(InvokedSerializedFormTest.class, "staticExample", 42d);
assertEquals(obj.toString(), "InvokedSerializedForm[com.opengamma.analytics.util.InvokedSerializedFormTest, staticExample, 42.0]");
assertEquals(obj.readReplace(), "static-object-arg-42.0");
obj = new InvokedSerializedForm(InvokedSerializedFormTest.class, "getStaticExample", 42d);
assertEquals(obj.toString(), "InvokedSerializedForm[com.opengamma.analytics.util.InvokedSerializedFormTest, StaticExample, 42.0]");
assertEquals(obj.readReplace(), "static-prefixed-object-arg-42.0");
}