@Test
public void testOneLeggedFactsAsPropsTimeFilter() {

  Long start = 1L;
  Long end = 2L;
  UUID objectId = UUID.randomUUID();
  ObjectRecord objectRecord = new ObjectRecord().setId(objectId);
  when(objectFactDao.searchFacts(any())).thenAnswer(x -> ResultContainer.<FactRecord>builder().build());
  helper.getOneLeggedFactsAsProperties(objectRecord, TraverseParams.builder()
          .setBeforeTimestamp(end)
          .setAfterTimestamp(start)
          .setIncludeRetracted(true)
          .build());
  verify(objectFactDao).searchFacts(argThat(criteria -> {
    assertEquals(set(objectId), criteria.getObjectID());
    assertEquals(FactSearchCriteria.FactBinding.oneLegged, criteria.getFactBinding());
    assertEquals(start, criteria.getStartTimestamp());
    assertEquals(end, criteria.getEndTimestamp());
    return true;
  }));
}