*/
public class JokerExprMatcherTest {
@Test
public final void testJokerMatching() {
final ExpressionMatcher matcher = new JokerExprMatcher();
final Expression e1 = new Expression("abc", "VER");
final Expression e2 = new Expression("a*c", "VER");
final Expression e3 = new Expression("ab", "VER");
final Expression e4 = new Expression("ab*", "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));
}