public function verify(string $consumerName, string $tag = null, string $consumerVersion = null): self
    {
        $path = "pacts/provider/{$this->config->getProviderName()}/consumer/{$consumerName}/";

        if ($tag) {
            $path .= "latest/{$tag}/";
        } elseif ($consumerVersion) {
            $path .= "version/{$consumerVersion}/";
        } else {
            $path .= 'latest/';
        }

        $uri = $this->config->getBrokerUri()->withPath($path);

        $arguments = \array_merge([$uri->__toString()], $this->getArguments());

        $this->verifyAction($arguments);

        return $this;
    }