@Test
void ofPath() {

    DeclaredTypeCodegen incrementalRuleCodegen =
            DeclaredTypeCodegen.ofFiles(
                    Collections.singleton(
                            new File("src/test/resources/org/kie/kogito/codegen/declared/declared.drl")));
    incrementalRuleCodegen.setPackageName("com.acme");
    List<GeneratedFile> generatedFiles = incrementalRuleCodegen.generate();
    assertThat(generatedFiles).hasSize(1);
}