* @param startInMatch if true starts expecting MATCH_CSS
* @param selectedMatchIndex will use selected_match_css for the item at this
* lengthList index if >= 0 and is inMatch at that index
*/
private Target createMockTarget(ImmutableList<Integer> lengthList, boolean startInMatch) {
Target mockTarget = EasyMock.createMock(Target.class);
boolean inMatch = startInMatch;
for (int i = 0; i < lengthList.size(); i++) {
mockTarget.render(lengthList.get(i), inMatch ? MATCH_CSS : null);
inMatch = !inMatch;
}
replay(mockTarget);
return mockTarget;
}