assertEquals(obj.toString(), "InvokedSerializedForm[com.opengamma.analytics.util.InvokedSerializedFormTest, StaticExamplePrimitive, 42.0]");
assertEquals(obj.readReplace(), "static-prefixed-primitive-arg-42.0");
}
public void testPrimitiveArgDynamicMethod() {
InvokedSerializedForm obj = new InvokedSerializedForm(this, "dynamicExamplePrimitive", 42d);
assertEquals(obj.toString(), "InvokedSerializedForm[Test, dynamicExamplePrimitive, 42.0]");
assertEquals(obj.readReplace(), "dynamic-primitive-arg-42.0");
obj = new InvokedSerializedForm(this, "getDynamicExamplePrimitive", 42d);
assertEquals(obj.toString(), "InvokedSerializedForm[Test, DynamicExamplePrimitive, 42.0]");
assertEquals(obj.readReplace(), "dynamic-prefixed-primitive-arg-42.0");
}