EdmmUtils { public static Map<QName, TServiceTemplate> getAllToscaLightCompliantModels() { Map<QName, TServiceTemplate> serviceTemplates = RepositoryFactory.getRepository() .getQNameToElementMapping(ServiceTemplateId.class); ToscaLightChecker toscaLightChecker = EdmmUtils.getToscaLightChecker(); return serviceTemplates.entrySet() .stream() .filter(entry -> toscaLightChecker.isToscaLightCompliant(entry.getValue())) .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); }  static Map<String, Object> checkToscaLightCompatibility(TServiceTemplate serviceTemplate); static ToscaLightChecker getToscaLightChecker(); static Map<QName, TServiceTemplate> getAllToscaLightCompliantModels();  }
@Test @Disabled void getAllToscaLightCompliantServiceTemplates() throws Exception { this.setRevisionTo("origin/plain"); Map<QName, TServiceTemplate> allToscaLightCompliantModels = EdmmUtils.getAllToscaLightCompliantModels(); assertEquals(15, allToscaLightCompliantModels.size()); }