KeyPairApi keyPairApi = api.getKeyPairApi();
try {
SshKey key = keyPairApi.get(47);
assertRequestHasCommonFields(server.takeRequest(), "/ssh_keys/47");
assertEquals(key.getId(), 47);
assertEquals(key.getName(), "my_key");
assertNotNull(key.getPublicKey());
} finally {
api.close();