def METHOD_NAME(self):
    target_operations = {
        'foo': [],
        'bar': []
    }
    injector = EC2PageSizeInjector()
    injector.TARGET_OPERATIONS = target_operations
    event_emitter = mock.Mock()
    injector.register(event_emitter)
    call_args = event_emitter.register_last.call_args_list
    events_registered = sorted([c[0][0] for c in call_args])
    expected_events = sorted([
        'calling-command.ec2.bar',
        'calling-command.ec2.foo'
    ])
    self.assertEqual(events_registered, expected_events)