Collection<Integer> nums = ImmutableSet.of(1, 5);
Collection<Integer> sameOrder = ImmutableSet.of(1, 5);
Collection<Integer> differentOrder = ImmutableSet.of(5, 1);
Collection<Integer> differentNums = ImmutableSet.of(1, 3, 5);
new EqualsTester(Predicates.in(nums))
.addEqualObject(Predicates.in(nums))
.addEqualObject(Predicates.in(sameOrder))
.addEqualObject(Predicates.in(differentOrder))
.addNotEqualObject(Predicates.in(differentNums))
.testEquals();