Extracted all mock event and handler classes to separate files and moved them to org.springframework.events.mock package. Moreover, refactored all classes that declared mock events/handlers as inner classes to use the newly introduced mocks.