/**
* Tests for exactMatching.
*/
@Test
public final void testExactMatching() {
final ExpressionMatcher matcher = new ExactExprMatcher();
final Expression abcVER = new Expression("abc", "VER");
final Expression abcVERCopy = new Expression("abc", "VER");
final Expression ab = new Expression("ab", "VER");
final Expression abcSUB = new Expression("abc", "SUB");
final Expression X = new Expression("X", "SUB");
final Expression aBc = new Expression("aBc", "SUB");
assertTrue(matcher.match(abcVER, abcVERCopy));
assertFalse(matcher.match(abcVER, ab));
assertTrue(matcher.match(abcVER, abcSUB));
assertFalse(matcher.match(abcVER, X));
assertFalse(matcher.match(abcSUB, X));
assertFalse(matcher.match(abcVER, aBc));
}