Expression notEqualTo = new ASTNotEqual(new ASTObjPath("artistName"), "abc");
Artist match = new Artist();
match.setArtistName("abc");
assertTrue(equalTo.match(match));
assertFalse(notEqualTo.match(match));
Artist noMatch = new Artist();
noMatch.setArtistName("123");
assertFalse("Failed: " + equalTo, equalTo.match(noMatch));
assertTrue("Failed: " + notEqualTo, notEqualTo.match(noMatch));