@Test
public void shouldReturErrorWhennBothEIsNull() {

    assertThrows(NullPointerException.class, () -> graphTemplate.getTraversalVertex().bothE((String) null)
            .<Person, Book>stream()
            .collect(toList()));
}