### Question:
PMMLDocumentMetadataProvider { public List<String> getPMMLDocumentNames() { final List<String> pmmlDocumentNames = new ArrayList<>(pmmlDocuments.keySet()); pmmlDocumentNames.sort(Comparator.naturalOrder()); return pmmlDocumentNames; } PMMLDocumentMetadataProvider(); @Inject  PMMLDocumentMetadataProvider(final DMNGraphUtils graphUtils,
                                        final DMNClientServicesProxy clientServicesProxy,
                                        final IncludedModelsPageStateProviderImpl stateProvider); @PostConstruct void loadPMMLIncludedDocuments(); @SuppressWarnings("unused") void onRefreshDecisionComponents(final @Observes RefreshDecisionComponents events); List<String> getPMMLDocumentNames(); List<String> getPMMLDocumentModels(final String pmmlDocumentName); List<String> getPMMLDocumentModelParameterNames(final String pmmlDocumentName,
                                                           final String pmmlDocumentModelName);  }### Answer:
@Test public void testGetPMMLDocumentNames() { final List<PMMLDocumentMetadata> pmmlDocuments = new ArrayList<>(); pmmlDocuments.add(new PMMLDocumentMetadata("path1", "zDocument1", DMNImportTypes.PMML.getDefaultNamespace(), Collections.emptyList())); pmmlDocuments.add(new PMMLDocumentMetadata("path2", "aDocument2", DMNImportTypes.PMML.getDefaultNamespace(), Collections.emptyList())); final ServiceCallback<List<PMMLDocumentMetadata>> callback = loadPMMLIncludedDocuments(); callback.onSuccess(pmmlDocuments); final List<String> documentNames = provider.getPMMLDocumentNames(); assertThat(documentNames).containsSequence("aDocument2", "zDocument1"); }