@Test
void testAnswerProtoFile() {

    Proto proto = generator.generate("org.kie.kogito.test.persons", Collections.singleton(Answer.class));
    assertThat(proto).isNotNull();
    assertThat(proto.getPackageName()).isEqualTo("org.kie.kogito.test.persons");
    assertThat(proto.getSyntax()).isEqualTo("proto2");
    assertThat(proto.getEnums()).hasSize(1);
    ProtoEnum answer = proto.getEnums().get(0);
    assertThat(answer).isNotNull();
    assertThat(answer.getName()).isEqualTo("Answer");
    assertThat(answer.getJavaPackageOption()).isEqualTo("org.kie.kogito.codegen.data");
    assertThat(answer.getFields()).hasSize(3);
    Map<String, Integer> fields = answer.getFields();
    assertThat(fields).isNotNull()
            .containsEntry("YES", 0)
            .containsEntry("MAYBE", 1)
            .containsEntry("NO", 2);
}