@Test
  void id() {
    check(criteria.id.is("id1")).matches("{_id: 'id1'}");
    check(criteria.id.in(Arrays.asList("id1", "id2"))) .matches("{_id: {$in: ['id1', 'id2']}}");
    check(criteria.id.isNot("id1")) .matches("{_id: {$ne: 'id1'}}");
    check(criteria.id.notIn(Arrays.asList("id1", "id2"))) .matches("{_id: {$nin: ['id1', 'id2']}}");
  }
Test queries for ID field ({@code _id})
criteria/mongo/test/org/immutables/criteria/mongo/FindVisitorTest.java