FudgeDeserializer deserializationContext = new FudgeDeserializer(context);
ValueRequirement test = new ValueRequirement("DATA", ComputationTargetType.PRIMITIVE, USD);
MutableFudgeMsg inMsg = serializationContext.objectToFudgeMsg(test);
assertNotNull(inMsg);
assertEquals(3, inMsg.getNumFields());
FudgeMsg outMsg = context.deserialize(context.toByteArray(inMsg)).getMessage();
ValueRequirement decoded = deserializationContext.fudgeMsgToObject(ValueRequirement.class, outMsg);
assertEquals(test, decoded);
test = new ValueRequirement("DATA", ComputationTargetType.PRIMITIVE, USD, ValueProperties.with(ValuePropertyNames.FUNCTION, "Foo").get());
inMsg = serializationContext.objectToFudgeMsg(test);
assertNotNull(inMsg);