public void testAddWhenResponseIs2xx() throws Exception {
HttpResponse addResponse = HttpResponse.builder().statusCode(200)
.addHeader("x-ms-request-id", "fakerequestid").build();
AzureManagementApi apiWhenExist = requestSendsResponse(add, addResponse);
DeploymentParams params = DeploymentParams
.builder()
.osType(OSType.LINUX)
.name(DEPLOYMENT_NAME)
.username("username")
.password("testpwd")
.size(RoleSize.MEDIUM)
.sourceImageName(
"OpenLogic__OpenLogic-CentOS-62-20120531-en-us-30GB.vhd")
.storageAccount("portalvhds0g7xhnq2x7t21").build();
apiWhenExist.getRoleApi().createDeployment(DEPLOYMENT_NAME, params);
}