function it_should_trigger_an_event_before_and_after_operation_execution($dispatcher)
{
$operation = new DeleteOperation('dc=foo,dc=bar');
$dispatcher->dispatch(Argument::which('getName', Event::LDAP_OPERATION_EXECUTE_BEFORE))->shouldBeCalled();
$dispatcher->dispatch(Argument::which('getName', Event::LDAP_OPERATION_EXECUTE_AFTER))->shouldBeCalled();
$this->execute($operation);
}