@Test
public void testHasUserIdIn() throws Exception {

    final User user1 = _userRepo.save(newUser(_inc));
    final User user2 = _userRepo.save(newUser(_inc));
    final User user3 = _userRepo.save(newUser(_inc));
    final List<Integer> ids = Arrays.asList(user1.getId(), user2.getId());
    final List<User> found = _userRepo.findAll(hasUserIdIn(ids));
    assertEquals(2, found.size());
    List<Integer> foundIds = Lists.transform(found, new Function<User, Integer>() {
        @Nullable
        @Override
        public Integer apply(@Nullable User input) {
            return input.getId();
        }
    });
    assertTrue(foundIds.contains(user1.getId()));
    assertTrue(foundIds.contains(user2.getId()));
    assertFalse(foundIds.contains(user3.getId()));
}