@Test
public void testHeaderGroupParsing() throws Exception {

    final Message message = new Message("8=FIX.4.2\0019=40\00135=A\001"
            + "627=2\001628=FOO\001628=BAR\001"
            + "98=0\001384=2\001372=D\001385=R\001372=8\001385=S\00110=228\001",
            DataDictionaryTest.getDictionary());
    final quickfix.fix44.Message.Header.NoHops hops = new quickfix.fix44.Message.Header.NoHops();
    message.getHeader().getGroup(1, hops);
    assertEquals("FOO", hops.getString(HopCompID.FIELD));
    message.getHeader().getGroup(2, hops);
    assertEquals("BAR", hops.getString(HopCompID.FIELD));
}