@Test
public void testFixT11AppMessageCracking() throws Exception {

    quickfix.fix50.Email message = new quickfix.fix50.Email();
    message.getHeader().setString(BeginString.FIELD, FixVersions.BEGINSTRING_FIXT11);
    message.getHeader().setString(SenderCompID.FIELD, "SENDER");
    message.getHeader().setString(TargetCompID.FIELD, "TARGET");
    message.getHeader().setString(ApplVerID.FIELD, ApplVerID.FIX50SP2);
    MessageCracker cracker = new MessageCracker() {
        @SuppressWarnings("unused")
        public void onMessage(quickfix.fix50.Email email, SessionID sessionID) {
            messageCracked++;
        }
    };
    cracker.crack(message, new SessionID(FixVersions.BEGINSTRING_FIXT11, "SENDER", "TARGET"));
    assertTrue(messageCracked > 0);
}