protected function replaceEndpoint(string &$stub, string $endpoint)
    {

        if (strlen($endpoint) > 0)
            $stub = str_replace('/dummy/endpoint/', $endpoint, $stub);

        return $this;
    }