@Test
public void testGetNodesBehindLastPage() {

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