### Question:
ObjectManager implements LifecycleAspect { public List<ObjectTypeEntity> fetchObjectTypes() { return objectTypeDao.fetch().all(); } @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 testFetchObjectTypes() { List<ObjectTypeEntity> expected = createAndSaveObjectTypes(3); List<ObjectTypeEntity> actual = getObjectManager().fetchObjectTypes(); expected.sort(Comparator.comparing(ObjectTypeEntity::getId)); actual.sort(Comparator.comparing(ObjectTypeEntity::getId)); assertObjectTypes(expected, actual); }