@Test
public void toJSON() throws Exception {

  // Test null predicate safely returns null
  Assert.assertNull(PredicateUtils.toJSON(null));
  Assert.assertEquals(createJSON(), PredicateUtils.toJSON(createPredicate()));
}