### Question:
KnowledgeCacheService implements I_KnowledgeCache, IntrospectService { @Override public List<TemplateMetaData> listAllOperationalTemplates() { return templateStorage.listAllOperationalTemplates(); } @Autowired  KnowledgeCacheService(@Qualifier("templateDBStorageService") TemplateStorage templateStorage, CacheManager cacheManager, CacheConfiguration cacheConfiguration); @PostConstruct void init(); @PreDestroy void closeCache(); @Override Set<String> getAllTemplateIds(); @Override String addOperationalTemplate(byte[] content); String addOperationalTemplateIntern(byte[] content, boolean overwrite); String adminUpdateOperationalTemplate(byte[] content); @Override List<TemplateMetaData> listAllOperationalTemplates(); @Override Optional<OPERATIONALTEMPLATE> retrieveOperationalTemplate(String key); @Override Optional<OPERATIONALTEMPLATE> retrieveOperationalTemplate(UUID uuid); @Override boolean deleteOperationalTemplate(OPERATIONALTEMPLATE template); @Override WebTemplate getQueryOptMetaData(UUID uuid); @Override WebTemplate getQueryOptMetaData(String templateId); int deleteAllOperationalTemplates(); @Override JsonPathQueryResult resolveForTemplate(String templateId, Collection<NodeId> nodeIds); @Override ItemInfo getInfo(String templateId, String aql); @Override List<String> multiValued(String templateId); @Override I_KnowledgeCache getKnowledge();  }### Answer:
@Test public void testListAllOperationalTemplates() throws Exception { KnowledgeCacheService cut = buildKnowledgeCache(testFolder,cacheRule); cut.addOperationalTemplate(IOUtils.toByteArray(TemplateTestData.IMMUNISATION_SUMMARY.getStream())); List<TemplateMetaData> templateMetaData = cut.listAllOperationalTemplates(); assertThat(templateMetaData).size().isEqualTo(1); }