String publicKeyPath = SSHKeyTestUtils.createDsaKeyPair();
String keyName = SSHKeyTestUtils.createRandomKeyName();
key = user.addSSHKey(keyName, new SSHPublicKey(publicKeyPath));
// operation
key.destroy();
key = null;
// verification
assertThat(user.getSSHKeyByName(keyName)).isNull();
} finally {