/**
  * @throws \Exception
  * @throws \InvalidArgumentException
  * @throws \WebservicesNl\Common\Exception\Server\NoServerAvailableException
  * @throws \WebservicesNl\Common\Exception\Client\InputException
  * @throws \SoapFault
  */
 public function testSoapClientInstance()
 {
     static::assertNull($this->manager->getActiveEndpoint()->getLastConnected());
     // Create a mock and queue successful response.
     $mock = new MockHandler([new Response(202, ['Content-Length' => 0])]);
     $handler = HandlerStack::create($mock);
     $curlClient = new Client(['handler' => $handler]);
     $instance = new SoapClient($this->settings, $this->manager, $curlClient);
     $instance->setLogger($this->logger);
     $instance->__soapCall('login');
     static::assertNotNull($this->manager->getActiveEndpoint()->getLastConnected());
     static::assertEquals('soap', $instance->getProtocolName());
 }