Refactor MockEventReceiver into a separate header for use in physics engine tests.