*/
public class CaseInsensitiveExprMatcherTest {
@Test
public final void testCaseInsensitiveMatching() {
final ExpressionMatcher matcher = new CaseInsensitiveExprMatcher();
final Expression e1 = new Expression("aBc", "VER");
final Expression e2 = new Expression("abc", "VER");
final Expression e3 = new Expression("ab", "VER");
final Expression e4 = new Expression("abc", "SUB");
final Expression e5 = new Expression("X", "SUB");
assertTrue(matcher.match(e1, e2));
assertFalse(matcher.match(e1, e3));
assertTrue(matcher.match(e1, e4));
assertFalse(matcher.match(e1, e5));
assertFalse(matcher.match(e4, e5));
}