String availabilityZoneEcs() {
        return getTaskMetadata().get("AvailabilityZone").asString();
    }
@Test
    public void availabilityZoneEcs() {
        // given
        //language=JSON
        String response = """
                {
                  "Cluster" : "hz-cluster",
                  "AvailabilityZone": "ca-central-1a"
                }""";

        stubFor(get(urlEqualTo("/task"))
                .willReturn(aResponse().withStatus(HttpURLConnection.HTTP_OK).withBody(response)));

        // when
        String result = awsMetadataApi.availabilityZoneEcs();

        // then
        assertEquals("ca-central-1a", result);
    }