@Test
public void shouldCountTagsCorrectlyInMessage()
{

    given(fixTagHandler.isFinished()).willReturn(false);
    final byte[] logonMsg = FixMessageUtil.getLogonMessage();
    final FixTagParser parser = new FixTagParser(fixTagHandler);
    parser.parse(logonMsg, 0, logonMsg.length, true);
    verify(fixTagHandler).messageStart();
    verify(fixTagHandler, times(13)).onTag(any(int.class), any(byte[].class), any(int.class), any(int.class));
    verify(fixTagHandler, times(13)).isFinished();
    verify(fixTagHandler).messageEnd();
    verifyNoMoreInteractions(fixTagHandler);
}