assertEquals(api.getVAppApi().get(vAppURI), expected);
}
@Test(enabled = false)
public void testEditVApp() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vAppId)
.xmlFilePayload("/vApp/editVApp.xml", VCloudDirectorMediaType.VAPP)
.acceptAnyMedia()
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/modifiedVapp.xml", VCloudDirectorMediaType.VAPP)
.httpResponseBuilder().build());
VApp modified = getVApp();
modified.setName("new-name");
modified.setDescription("New Description");
Task expected = editVAppTask();
assertEquals(api.getVAppApi().edit(vAppURI, modified), expected);
}