@AfterClass(alwaysRun = true)
 public void cleanUp() throws Exception {
   if (metadataKey != null) {
     try {
       Task task = metadataApi.remove(metadataKey);
       taskDoneEventually(task);
     } catch (VCloudDirectorException e) {
       logger.warn(e, "Error deleting metadata-value (perhaps it doesn't exist?); continuing...");
     }
   }
 }
  // TODO insufficient permissions to test
  @Test(
      description = "DELETE /admin/vdc/{id}/metadata/{key}",
      dependsOnMethods = {"testSetMetadataValue"},
      enabled = false)
  public void testRemoveMetadataValue() throws Exception {
    // TODO Remove dependency on other tests; make cleanUp remove a list of metadata entries?

    Task task = metadataApi.remove(metadataKey);
    assertTaskSucceeds(task);

    assertNull(metadataApi.get(metadataKey));
  }