@Test
public void testAnnotationBasedCracking() throws Exception {

    quickfix.fixt11.Logon logon = new quickfix.fixt11.Logon(new EncryptMethod(
            EncryptMethod.NONE_OTHER), new HeartBtInt(30),
            new DefaultApplVerID(ApplVerID.FIX42));
    MessageCracker cracker = new MessageCracker() {
        @Handler
        public void handle(quickfix.fixt11.Logon logon, SessionID sessionID) {
            messageCracked++;
        }
    };
    cracker.crack(logon, new SessionID(FixVersions.BEGINSTRING_FIXT11, "SENDER", "TARGET"));
    assertTrue(messageCracked > 0);
}