PredicateUtils { public static Predicate fromJSON(String json) { Map<String, Object> map = new Gson().fromJson(json, PARSED_TYPE); return (StringUtils.isEmpty(json) ? null : fromMap(map)); }  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 fromJSON() throws Exception { verifyPredicate(PredicateUtils.fromJSON(createJSON())); }