MutableFudgeMsg msg = OpenGammaFudgeContext.getInstance().newMessage();
msg.add(MarketDataRequirementNames.BID, 50.80);
msg.add(MarketDataRequirementNames.ASK, 50.90);
msg.add(MarketDataRequirementNames.LAST, 50.89);
FieldHistoryStore store = new FieldHistoryStore();
store.liveDataReceived(msg);
MutableFudgeMsg normalized = calculator.apply(msg, "123", store);
assertEquals(4, normalized.getAllFields().size());
assertEquals(50.85, normalized.getDouble(MarketDataRequirementNames.MARKET_VALUE), 0.0001);
}