@Test
  void equality() {
    repository.insert(generator.get().withId("id0").withValue(0L));
    repository.insert(generator.get().withId("id1").withValue(1L));
    repository.insert(generator.get().withId("id2").withValue(2L));

    ids(criteria.value.is(0L)).hasContentInAnyOrder("id0");
    ids(criteria.value.is(1L)).hasContentInAnyOrder("id1");
    ids(criteria.value.is(-1L)).isEmpty();
    ids(criteria.value.isNot(0L)).hasContentInAnyOrder("id1", "id2");
    ids(criteria.value.isNot(1L)).hasContentInAnyOrder("id0", "id2");
    ids(criteria.value.isNot(3L)).hasContentInAnyOrder("id0", "id1", "id2");
    ids(criteria.value.in(0L, 1L)).hasContentInAnyOrder("id1", "id0");
    ids(criteria.value.notIn(0L, 1L)).hasContentInAnyOrder("id2");
    ids(criteria.value.notIn(0L, 1L, 2L)).isEmpty();
    ids(criteria.value.notIn(-1L, -2L)).hasContentInAnyOrder("id0", "id1", "id2");
  }
Testing various string operations prefix/suffix/length etc.
criteria/common/test/org/immutables/criteria/typemodel/LongTemplate.java