@Test
public void testMetaFactsAsPropsTimeFilter() {

  Long start = 1L;
  Long end = 2L;
  UUID inReferenceToID = UUID.randomUUID();
  when(objectFactDao.searchFacts(any())).thenReturn(ResultContainer.<FactRecord>builder().build());
  helper.getMetaFactsAsProperties(new FactRecord().setId(inReferenceToID), TraverseParams.builder()
          .setBeforeTimestamp(end)
          .setAfterTimestamp(start)
          .setIncludeRetracted(true)
          .build());
  verify(objectFactDao).searchFacts(argThat(criteria -> {
    assertEquals(set(inReferenceToID), criteria.getInReferenceTo());
    assertEquals(FactSearchCriteria.FactBinding.meta, criteria.getFactBinding());
    assertEquals(start, criteria.getStartTimestamp());
    assertEquals(end, criteria.getEndTimestamp());
    return true;
  }));
}