String document = "/ontologies/root-ontology.owl";
File expectedDocumentFile = new File(outputFolder, document);
when(rootOntologyDocumentFileMatcher.isRootOntologyDocument(expectedDocumentFile)).thenReturn(true);
File zipFile = createZipFile(document);
ZipArchiveProjectSourcesExtractor extractor = new ZipArchiveProjectSourcesExtractor(tempFileFactory, rootOntologyDocumentFileMatcher);
RawProjectSources projectSources = extractor.extractProjectSources(zipFile);
Collection<OWLOntologyDocumentSource> documentSources = projectSources.getDocumentSources();
assertThat(documentSources, hasSize(1));
assertThat(documentSources, hasItem(isFileDocumentSourceForFile(expectedDocumentFile)));
}