public function withPrivateKey()
{
$connection = new Connection('TestUsername', '1.2.3.4', PrivateKey::get(FIXTURE_ROOT . 'foo.pem'));
$this->assertEquals('ssh -i ' . FIXTURE_ROOT . 'foo.pem -o ConnectTimeout=5 -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected]', $connection->__toString());
}