.endpoint("https://management.core.windows.net/" + subscriptionId + "/services/hostedservices/" + SERVICE_NAME)
.addHeader("x-ms-version", "2012-03-01")
.addHeader("Accept", "application/xml").build();
public void testGetWhenResponseIs2xx() throws Exception {
HttpResponse getResponse = HttpResponse.builder().statusCode(200)
.payload(payloadFromResourceWithContentType("/hostedservice.xml", "application")).build();
AzureManagementApi apiWhenExist = requestSendsResponse(get, getResponse);
assertEquals(apiWhenExist.getHostedServiceApi().get(SERVICE_NAME).toString(), new GetHostedServiceTest().expected().toString());