public function test_that_create_returns_exception_instance()
 {
     $exception = EventSourcingException::create('Something went wrong');
     $this->assertInstanceOf('Novuso\\Common\\Domain\\EventSourcing\\Exception\\EventSourcingException', $exception);
 }
 /**
  * Constructs RegisterAggregateException
  *
  * @param string         $message  The exception message
  * @param int            $code     The exception code
  * @param Exception|null $previous The previous exception for chaining
  */
 public function __construct($message = '', $code = 601, Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }