public static void silentlyDestroyKey(IOpenShiftSSHKey key) {
   if (key == null) {
     return;
   }
   try {
     key.destroy();
   } catch (Exception e) {
     //			e.printStackTrace();
   }
 }
  @Test
  public void shouldDestroyKey() throws Exception {
    IOpenShiftSSHKey key = null;
    try {
      // pre-conditions
      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 {
      SSHKeyTestUtils.silentlyDestroyKey(key);
    }
  }