### Question:
ObjectFactDaoFacade implements ObjectFactDao { @Override public ObjectStatisticsContainer calculateObjectStatistics(ObjectStatisticsCriteria criteria) { return factSearchManager.calculateObjectStatistics(criteria); } @Inject  ObjectFactDaoFacade(ObjectManager objectManager,
                             FactManager factManager,
                             FactSearchManager factSearchManager,
                             ObjectRecordConverter objectRecordConverter,
                             FactRecordConverter factRecordConverter,
                             FactAclEntryRecordConverter factAclEntryRecordConverter,
                             FactCommentRecordConverter factCommentRecordConverter,
                             Consumer<FactRecord> dcReplicationConsumer); @Override ObjectRecord getObject(UUID id); @Override ObjectRecord getObject(String type, String value); @Override ObjectRecord storeObject(ObjectRecord record); @Override ObjectStatisticsContainer calculateObjectStatistics(ObjectStatisticsCriteria criteria); @Override ResultContainer<ObjectRecord> searchObjects(FactSearchCriteria criteria); @Override FactRecord getFact(UUID id); @Override FactRecord storeFact(FactRecord record); @Override FactRecord refreshFact(FactRecord record); @Override FactRecord retractFact(FactRecord record); @Override ResultContainer<FactRecord> retrieveExistingFacts(FactRecord record); @Override ResultContainer<FactRecord> searchFacts(FactSearchCriteria criteria); @Override FactAclEntryRecord storeFactAclEntry(FactRecord fact, FactAclEntryRecord aclEntry); @Override FactCommentRecord storeFactComment(FactRecord fact, FactCommentRecord comment);  }### Answer:
@Test public void testCalculateObjectStatistics() { ObjectStatisticsCriteria criteria = ObjectStatisticsCriteria.builder() .addObjectID(UUID.randomUUID()) .addAvailableOrganizationID(UUID.randomUUID()) .setCurrentUserID(UUID.randomUUID()) .build(); ObjectStatisticsContainer container = ObjectStatisticsContainer.builder().build(); when(factSearchManager.calculateObjectStatistics(criteria)).thenReturn(container); assertSame(container, dao.calculateObjectStatistics(criteria)); verify(factSearchManager).calculateObjectStatistics(criteria); }