public function testGetRsaPrivateKeyInvalid()
 {
     $this->setExpectedException(CredentialsException::class);
     $credentials = new RsaClientCredentials();
     $credentials->setRsaPrivateKey(__DIR__ . '/test_rsa_invalidkey.pem');
     $credentials->getRsaPrivateKey();
 }