CoreNlpModels extends AbstractModels<CoreNlpAnnotator<T>> { String getJarFileName(Language language) { return String.join("-", asList("stanford", "corenlp", "4.0.0", "models", language.iso6391Code() + ".jar")); } CoreNlpModels(NlpStage stage);   }
@Test public void testLoadJar() { final CoreNlpModels jarModels = new CoreNlpModels(NER) { @Override String getPropertyName() { return null;} @Override protected Object loadModelFile(Language language) { return null; } }; jarModels.addResourceToContextClassLoader( jarModels.getModelsBasePath(GERMAN).resolve(jarModels.getJarFileName(GERMAN))); assertThat(ClassLoader.getSystemClassLoader(). getResource("StanfordCoreNLP-german.properties")).isNotNull(); }