### Question:
OriginManager implements LifecycleAspect { public List<OriginEntity> fetchOrigins() { return originDao.fetch().all(); } @Inject  OriginManager(ClusterManager clusterManager); @Override void startComponent(); @Override void stopComponent(); OriginEntity getOrigin(UUID id); OriginEntity getOrigin(String name); List<OriginEntity> fetchOrigins(); OriginEntity saveOrigin(OriginEntity origin);  }### Answer:
@Test public void testFetchOrigins() { List<OriginEntity> expected = createAndSaveOrigins(3); List<OriginEntity> actual = getOriginManager().fetchOrigins(); expected.sort(Comparator.comparing(OriginEntity::getId)); actual.sort(Comparator.comparing(OriginEntity::getId)); assertOrigins(expected, actual); }