@Test
@DisplayName("Return interval of service-generated timestamps starting at newest, when no timestamp was passed.") // NOCS
public void giveMaxLengthIntervalOfServiceGeneratedTimestamps() {

  final MultivaluedHashMap<String, String> params = new MultivaluedHashMap<>();
  params.add("filter[type]", "landscape");
  params.add("page[number]", "0");
  params.add("page[size]", "2");
  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("6", 1556302850L, 800)); // NOCS
  expectedList.add(new Timestamp("5", 1556302840L, 700)); // NOCS
  assertEquals(expectedList,
      resultList,
      "Invalid return value for interval of service-generated timestamps.");
}