function it_should_dispatch_an_event_when_it_fails_to_verify_a_message_due_to_an_unexpected_response(Verifier $verifier, EventDispatcher $eventDispatcher)
{
$verifier->verify(Argument::type('Mdb\\PayPal\\Ipn\\Message'))->willThrow('UnexpectedValueException');
$eventDispatcher->dispatch(Listener::IPN_VERIFICATION_FAILURE_EVENT, Argument::type('Mdb\\PayPal\\Ipn\\Event\\MessageVerificationFailureEvent'))->shouldBeCalled();
$this->listen();
}