@Test
public void testGetNodesMorePages() {

    Page<Node> resultPage = graphController.getNodes("name:v*", PageRequest.of(0, 3));
    // page 1:
    assertThat(resultPage, notNullValue());
    assertThat(resultPage.getTotalElements(), is(5L));
    assertThat(resultPage.getTotalPages(), is(2));
    assertThat(resultPage.getNumber(), is(0));
    List<Node> nodes = resultPage.getContent();
    assertThat(nodes, hasSize(3));
    // page 2:
    resultPage = graphController.getNodes("name:v*", PageRequest.of(1, 3));
    assertThat(resultPage, notNullValue());
    assertThat(resultPage.getTotalElements(), is(5L));
    assertThat(resultPage.getTotalPages(), is(2));
    assertThat(resultPage.getNumber(), is(1));
    nodes = resultPage.getContent();
    assertThat(nodes, hasSize(2));
}