public function testSSHKeysDeleteAPIFailure()
{
$token = $this->getMockBuilder(SSHKey::class)->disableOriginalConstructor()->getMock();
$token->expects($this->once())->method('delete')->will($this->throwException(new TerminusException('There was an problem deleting the SSH key.')));
$this->ssh_keys->expects($this->once())->method('get')->with($this->equalTo('123'))->willReturn($token);
$this->setExpectedException(\Exception::class, 'There was an problem deleting the SSH key.');
$out = $this->command->delete('123');
$this->assertNull($out);
}