function it_throws_notification_mismatch_exception_if_success_message_type_has_been_found_but_expect_failure(NotificationAccessorInterface $notificationAccessor)
 {
     $notificationAccessor->getType()->willReturn(NotificationType::success());
     $notificationAccessor->getMessage()->willReturn('Something went wrong.');
     $this->shouldThrow(new NotificationExpectationMismatchException(NotificationType::failure(), 'Something went wrong.', NotificationType::success(), 'Something went wrong.'))->during('checkNotification', ['Something went wrong.', NotificationType::failure()]);
 }
 /**
  * @param NotificationType $type
  *
  * @return bool
  */
 private function hasType(NotificationType $type)
 {
     return $type === $this->notificationAccessor->getType();
 }