public function testApiCommand_ThrowsException_WhenContextParamMessageDoesNotExist() { $this->setExpectedException(RejectionException::class); $command = $this->createCommand(); $this->callProtectedMethod($command, 'command', [['exception' => 'exception', 'origin' => 'origin']]); }