@Test
public void matches(){

	List<String> leftTokens = Arrays.asList("A", "B", "C");
	List<String> rightTokens = Arrays.asList("a", "b", "c");
	assertFalse(TextUtil.matches(leftTokens, rightTokens, true, 0));
	assertTrue(TextUtil.matches(leftTokens, rightTokens, false, 0));
	rightTokens = Arrays.asList("A", "X", "C");
	assertFalse(TextUtil.matches(leftTokens, rightTokens, true, 0));
	assertTrue(TextUtil.matches(leftTokens, rightTokens, true, 1));
	rightTokens = Arrays.asList("A", "XX", "C");
	assertFalse(TextUtil.matches(leftTokens, rightTokens, true, 1));
	assertTrue(TextUtil.matches(leftTokens, rightTokens, true, 2));
	rightTokens = Arrays.asList("a", "x", "c");
	assertFalse(TextUtil.matches(leftTokens, rightTokens, true, 0));
	assertFalse(TextUtil.matches(leftTokens, rightTokens, true, 2));
	assertTrue(TextUtil.matches(leftTokens, rightTokens, true, 3));
	assertFalse(TextUtil.matches(leftTokens, rightTokens, false, 0));
	assertTrue(TextUtil.matches(leftTokens, rightTokens, false, 1));
	rightTokens = Arrays.asList("a", "xx", "c");
	assertFalse(TextUtil.matches(leftTokens, rightTokens, true, 3));
	assertTrue(TextUtil.matches(leftTokens, rightTokens, true, 4));
	assertFalse(TextUtil.matches(leftTokens, rightTokens, false, 1));
	assertTrue(TextUtil.matches(leftTokens, rightTokens, false, 2));
}