@Test
  void returnNiceCriteria() {
    PersonCriteria crit = PersonCriteria.person;
    crit = crit.age.atLeast(21);
    crit = crit.or(crit.fullName.notEmpty());
    crit = crit.not(f -> f.isActive.isTrue()); // TODO classcast exception here
    crit = crit.bestFriend.value().with(f -> f.hobby.endsWith("test"));
  }
Make sure use-friendly criteria is returned after
criteria/common/test/org/immutables/criteria/personmodel/PersonTest.java