@Test
public void testExists() throws Exception {

    TestUser created = dao.create(TestUser.builder().name("Ian").build());
    assertFalse(dao.exists(new Document("name", "Bob"), null));
    assertTrue(dao.exists(new Document("name", "Ian"), null));
    assertFalse(dao.exists(new Document("name", "Bob"), created.getId()));
}