PMMLRestResourceGenerator { protected boolean useInjection() { return this.annotator != null; } PMMLRestResourceGenerator(KiePMMLModel model, String appCanonicalName); String generate(); String getNameURL(); KiePMMLModel getKiePMMLModel(); PMMLRestResourceGenerator withDependencyInjection(DependencyInjectionAnnotator annotator); String className(); String generatedFilePath();  }
@Test void useInjection() { pmmlRestResourceGenerator.withDependencyInjection(null); assertFalse(pmmlRestResourceGenerator.useInjection()); pmmlRestResourceGenerator.withDependencyInjection(getDependencyInjectionAnnotator()); assertTrue(pmmlRestResourceGenerator.useInjection()); }