@Test
public void shouldDefineLimit2() {

    List<Person> people = graphTemplate.getTraversalVertex(otavio.getId(), poliana.getId(), paulo.getId()).
            <Person>next(2)
            .collect(toList());
    assertEquals(2, people.size());
    assertThat(people, containsInAnyOrder(otavio, poliana));
}