PredictionConfigGenerator extends TemplatedGenerator { public ObjectCreationExpr newInstance() { return new ObjectCreationExpr().setType(StaticPredictionConfig.class.getCanonicalName()); } PredictionConfigGenerator(String packageName); ObjectCreationExpr newInstance(); List<BodyDeclaration<?>> members();  }
@Test void newInstance() { ObjectCreationExpr retrieved = predictionConfigGenerator.newInstance(); String expected = "new org.kie.kogito.pmml.config.StaticPredictionConfig()"; assertEquals(expected, retrieved.toString()); }