ZipFileImporterFactory extends RegexMatchingImporterFactory { @Override public Importer createImporter(final InputFile file, final ImportEventListener listener) { return new ZipFileImporter(getContext().getImporterService(), file, listener); } ZipFileImporterFactory(); @Override Importer createImporter(final InputFile file, final ImportEventListener listener);  }
@Test void testFactoryThrowsExceptionWhenContextMissing() { assertThrows(NullPointerException.class, () -> new ZipFileImporterFactory().createImporter(null, null), "Context was not initialized"); }