@Test
public void testGetObjectPropsWithNameValue() {

  UUID objectId = UUID.randomUUID();
  ObjectRecord objectRecord = new ObjectRecord().setId(objectId).setValue("objectValue");
  FactTypeStruct factType1 = mockFactType("value");
  FactRecord fact = new FactRecord().setTypeID(factType1.getId()).setValue("someFactValue");
  when(securityContext.hasReadPermission(any(FactRecord.class))).thenReturn(true);
  when(objectFactDao.searchFacts(argThat(x -> Objects.equals(x.getObjectID(), set(objectId))))).thenReturn(
          ResultContainer.<FactRecord>builder().setValues(ListUtils.list(fact).iterator()).build()
  );
  List<PropertyEntry<?>> props = helper.getObjectProperties(
          objectRecord,
          TraverseParams.builder().setIncludeRetracted(true).build());
  assertEquals(2, props.size());
  assertEquals(set("value->objectValue", "value->someFactValue"), asKeyValueStrings(props));
}