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