public function testInvalidListenersThrowException()
{
$options = ['mail_listeners' => [new \stdClass(), 'invalid_service', '\\Nonsens\\Foo']];
$this->initServiceLocator($options);
$this->mailServiceFactory->__invoke($this->serviceLocator, 'acmailer.mailservice.default');
}