@Test
public void shouldExtractNonZipFileUsingSingleDocumentExtractor() throws IOException {
// Given
when(zipInputStreamChecker.isZipFile(inputFile)).thenReturn(false);
UploadedProjectSourcesExtractor extractor = new UploadedProjectSourcesExtractor(
zipInputStreamChecker,
zipArchiveProjectSourcesExtractor,
singleDocumentProjectSourcesExtractor
);
// When
extractor.extractProjectSources(inputFile);
// Then
verify(singleDocumentProjectSourcesExtractor, times(1)).extractProjectSources(inputFile);
}