@Test
@DisplayName("Return first two service-generated timestamps.")
public void giveServiceGeneratedBasedOnMaxLength() {

  final MultivaluedHashMap<String, String> params = new MultivaluedHashMap<>();
  params.add("page[number]", "2");
  params.add("page[size]", "2");
  params.add("filter[type]", "landscape");
  final UriInfo ui = Mockito.mock(UriInfo.class);
  when(ui.getQueryParameters(true)).thenReturn(params);
  final List<Timestamp> resultList =
      (List<Timestamp>) this.timestampResource.getTimestamps(ui).getData();
  final List<Timestamp> expectedList = new ArrayList<>();
  expectedList.add(new Timestamp("1", 1556302800L, 300)); // NOCS
  expectedList.add(new Timestamp("2", 1556302810L, 400)); // NOCS
  assertEquals(this.reverse(expectedList), resultList, "MaxLength returned wrong value.");
}