final Iterator< Match > matchIterator = getMatchIterator();
for ( int currentIndex = 0; matchIterator.hasNext()
&& currentIndex < EXPECTED.length; currentIndex++ )
{
final Match currentMatch = matchIterator.next();
assertEquals( "The token count is not correct on the "
+ currentIndex + "th index",
EXPECTED[ currentIndex ].tokenCount,
currentMatch.getTokenCount() );
assertEquals( "The mark count is not correct on the "
+ currentIndex + "th index",
EXPECTED[ currentIndex ].markCount,
currentMatch.getMarkCount() );
assertEquals( "The line count is not correct on the "
+ currentIndex + "th index",
EXPECTED[ currentIndex ].lineCount,
currentMatch.getLineCount() );
}
}