exchange.setProperty(QuickfixjEndpoint.DATA_DICTIONARY_KEY, new DataDictionary("FIX44.xml"));
exchange.getIn().setBody(data);
Message message = exchange.getIn().getBody(Message.class);
NoHops hop = new NoHops();
message.getHeader().getGroup(1, hop);
assertEquals("FOO", hop.getString(HopCompID.FIELD));
message.getHeader().getGroup(2, hop);
assertEquals("BAR", hop.getString(HopCompID.FIELD));
} finally {
quickfixjEngine.stop();
}
}