### Question:
NotEqualsOperator extends AbstractOperator implements RelationalOperator { @Override public Predicate toPredicate(String prop, String val) { return new NotPredicate(new EqualsPredicate<>(prop, val)); } NotEqualsOperator(); @Override TYPE getType(); @Override Predicate toPredicate(String prop, String val); @Override String getName();  }### Answer:
@Test public void testToPredicate() { assertEquals(new NotPredicate(new EqualsPredicate<>("prop", "val")), new NotEqualsOperator().toPredicate("prop", "val")); }