Add tests for extending a Java class to annotate @role(event) for CEP