@Test
void should_be_set_availabilityZone_using_clientConfig_when_not_exists_property() {

    final String[] zones = {"zone1", "zone2"};
    doReturn("region").when(eurekaClientConfigBean).getRegion();
    doReturn(zones).when(eurekaClientConfigBean).getAvailabilityZones("region");
    assertThat(processor.postProcessAfterInitialization(eurekaInstanceConfigBean, "beanName"))
        .isEqualTo(eurekaInstanceConfigBean);
    final AmazonInfo dataCenterInfo = (AmazonInfo) eurekaInstanceConfigBean.getDataCenterInfo();
    assertThat(dataCenterInfo.getMetadata()).containsEntry("availability-zone", zones[0]);
}