@Test
@DisplayName("Return concrete interval of user-uploaded timestamps.")
public void giveConcreteIntervalOfUserUploadedTimestamps() {

  final MultivaluedHashMap<String, String> params = new MultivaluedHashMap<>();
  params.add("filter[from]", "1556302880");
  params.add("filter[to]", "1556302900");
  params.add("filter[type]", "replay");
  params.add("page[size]", "3");
  params.add("page[number]", "0");
  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("9", 1556302880L, 800)); // NOCS
  expectedList.add(new Timestamp("10", 1556302890L, 900)); // NOCS
  expectedList.add(new Timestamp("11", 1556302900L, 1000)); // NOCS
  assertEquals(this.reverse(expectedList),
      resultList,
      "Invalid return value for concrete interval of user-uploaded timestamps.");
}