### Question:
SceneCatalogManager { public SceneCatalog getCatalog(String population) { if(catalogRef.get() == null) { loadCatalog(); } if(StringUtils.isEmpty(population)) { population = Population.NAME_GENERAL; } return catalogRef.get().get(population); } @Inject  SceneCatalogManager(SceneConfig config, CapabilityRegistry registry, PopulationDAO populationDao); @PostConstruct void init(); SceneCatalog getCatalog(String population);  }### Answer:
@Test public void testGetCatalog() { EasyMock.expect(populationDao.listPopulations()).andReturn(expectedPopulationList); replay(); manager = new SceneCatalogManager(config, registry, populationDao); manager.init(); expectedSceneMap.forEach((curPopulation, expectedTemplateIdList) -> { SceneCatalog catalog = manager.getCatalog(curPopulation); assertNotNull(catalog); assertEquals(expectedTemplateIdList.size(), catalog.getTemplates().size()); expectedTemplateIdList.forEach(id -> { assertNotNull(catalog.getById(id)); }); }); verify(); }