Optional<String> placementPartitionNumberEc2() {
        return getOptionalMetadata(ec2MetadataEndpoint.concat("/placement/partition-number/"), "partition number");
    }
@Test
    public void partitionPlacementGroupEc2() {
        // given
        String partitionNumber = "42";
        stubFor(get(urlEqualTo(PARTITION_NO_URL))
                .willReturn(aResponse().withStatus(HttpURLConnection.HTTP_OK).withBody(partitionNumber)));

        // when
        Optional<String> result = awsMetadataApi.placementPartitionNumberEc2();

        // then
        assertEquals(partitionNumber, result.orElse("N/A"));
        verify(exactly(1), getRequestedFor(urlEqualTo(PARTITION_NO_URL)));
    }