String getAvailabilityZone() {
        String zone = azureMetadataApi.availabilityZone();
        if (isNullOrEmptyAfterTrim(zone)) {
            return azureMetadataApi.faultDomain();
        } else {
            return String.format("%s-%s", azureMetadataApi.location(), zone);
        }
    }
@Test
    public void getAvailabilityZone() {
        // given
        String location = "location-1";
        given(azureMetadataApi.location()).willReturn(location);
        given(azureMetadataApi.availabilityZone()).willReturn(ZONE);
        AzureConfig azureConfig = AzureConfig.builder().setInstanceMetadataAvailable(true).build();
        AzureClient azureClient = new AzureClient(azureMetadataApi, azureComputeApi, azureAuthenticator, azureConfig);

        // when
        String result = azureClient.getAvailabilityZone();

        // then
        assertEquals(String.format("%s-%s", location, ZONE), result);
    }