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