@Test
public void testGetLastUrl() {

    List<String> mockedList = new ArrayList<String>();
    PageRequest pageable = PageRequest.of(2, 2);
    page = new PageImpl<String>(mockedList, pageable, 4L);
    PaginationInfo info = new PaginationInfo(page, pathTmpl, queryTmpl, 0);
    // expected
    String expectedURL = "terasoluna?value=test&page=1&size=2";
    // run
    String lastURL = info.getLastUrl();
    // assert
    assertThat(lastURL, is(expectedURL));
}