First version of event mapping with simple unit tests