one more example with EventGenerator
example added to tests and documentation