@Test
  void path() throws Exception {
    Path id1 = Path.ofMember(Person.class.getDeclaredMethod("id"));
    Path id2 = Path.ofMember(Person.class.getDeclaredMethod("id"));
    Path fullName = Path.ofMember(Person.class.getDeclaredMethod("fullName"));

    new EqualsTester()
            .addEqualityGroup(id1, id2)
            .addEqualityGroup(fullName)
            .testEquals();
  }
Validate equals / hashCode behaviour for {@link Expression} implementations
criteria/common/test/org/immutables/criteria/expression/ExpressionEqualsHashcodeTest.java