// TODO insufficient permissions to test @Test(description = "DISABLE/ENABLE /admin/vdc/{id}", enabled = false) public void testDisableAndEnableVdc() throws Exception { // TODO Need to have a VDC that we're happy to remove! Exception exception = null; try { vdcApi.disable(vdcUrn); } catch (Exception e) { exception = e; } finally { try { vdcApi.enable(vdcUrn); } catch (Exception e) { if (exception != null) { logger.warn(e, "Error resetting adminVdc.name; rethrowing original test exception..."); throw exception; } else { throw e; } } } }