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