@Test
@DisplayName("Return all user-uploaded timestamps.")
public void giveAllUserUploadedOnlyFlag() {

  final MultivaluedHashMap<String, String> params = new MultivaluedHashMap<>();
  params.add("filter[type]", "replay");
  final UriInfo ui = Mockito.mock(UriInfo.class);
  when(ui.getQueryParameters(true)).thenReturn(params);
  assertEquals(this.reverse(this.userUploadedTimestamps),
      this.timestampResource.getTimestamps(ui).getData(),
      "User-uploaded flag returned wrong value for timestamp resource.");
}