@Test
public void shouldReturnErrorWhenThereAreMoreThanOneInGetSingleResult() {

    assertThrows(NonUniqueResultException.class, () -> graphTemplate.getTraversalVertex()
            .hasLabel(Person.class).valueMap("name")
            .getSingleResult());
}