@Test
public void toMap() throws Exception {

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