@Test
public void testToPredicate() {

  EqualsPredicate p = new EqualsPredicate<String>("prop", "val");
  NotPredicate notPredicate = new NotPredicate(p);
  assertEquals(notPredicate, new NotOperator(1).toPredicate(null, p));
}