@Test
public void testHasNullAuthType() throws Exception {

    User user1 = _userRepo.save(newUser(_inc));
    user1.getSecurity().setAuthType(null);
    final User user2 = newUser(_inc);
    user2.getSecurity().setAuthType("authtype");
    _userRepo.save(user2);
    final List<User> found = _userRepo.findAll(hasNullAuthType());
    assertEquals(1, found.size());
    assertEquals(user1.getId(), found.get(0).getId());
}