PredicateUtils { public static String toJSON(Predicate predicate) { return (predicate == null) ? null : predicate.toJSON(); }  static Map<String, Object> toMap(Predicate predicate); static Predicate fromMap(Map<?, ?> map); static String toJSON(Predicate predicate); static Predicate fromJSON(String json);  }
@Test public void toJSON() throws Exception { Assert.assertNull(PredicateUtils.toJSON(null)); Assert.assertEquals(createJSON(), PredicateUtils.toJSON(createPredicate())); }