### Question:
ObjectManager implements LifecycleAspect { public Iterator<ObjectEntity> getObjects(List<UUID> id) { if (CollectionUtils.isEmpty(id)) return Collections.emptyIterator(); return new MultiFetchIterator<>(partition -> objectDao.fetchByID(partition).iterator(), id); } @Inject  ObjectManager(ClusterManager clusterManager); @Override void startComponent(); @Override void stopComponent(); ObjectTypeEntity getObjectType(UUID id); ObjectTypeEntity getObjectType(String name); List<ObjectTypeEntity> fetchObjectTypes(); ObjectTypeEntity saveObjectType(ObjectTypeEntity type); ObjectEntity getObject(UUID id); ObjectEntity getObject(String type, String value); Iterator<ObjectEntity> getObjects(List<UUID> id); ObjectEntity saveObject(ObjectEntity object); Iterator<ObjectFactBindingEntity> fetchObjectFactBindings(UUID id); ObjectFactBindingEntity saveObjectFactBinding(ObjectFactBindingEntity binding);  }### Answer:
@Test public void testFetchObjectsById() { ObjectEntity expected = createAndSaveObjects().get(0); List<ObjectEntity> actual = ListUtils.list(getObjectManager().getObjects(ListUtils.list(expected.getId()))); assertEquals(1, actual.size()); assertObject(expected, actual.get(0)); }
@Test public void testFetchObjectsByIdWithUnknownId() { assertEquals(0, ListUtils.list(getObjectManager().getObjects(null)).size()); assertEquals(0, ListUtils.list(getObjectManager().getObjects(ListUtils.list())).size()); assertEquals(0, ListUtils.list(getObjectManager().getObjects(ListUtils.list(UUID.randomUUID()))).size()); }