public AmazonInfo build() {
        return new AmazonInfo(Name.Amazon.name(), metadata);
    }
@Test
    public void payloadWithNameAfterMetadata() throws IOException {
        String json = "{"
                + "    \"@class\": \"com.netflix.appinfo.AmazonInfo\","
                + "    \"metadata\": {"
                + "        \"instance-id\": \"i-12345\""
                + "    },"
                + "    \"name\": \"Amazon\""
                + "}";
        AmazonInfo info = newMapper().readValue(json, AmazonInfo.class);

        AmazonInfo expected = AmazonInfo.Builder.newBuilder()
                .addMetadata(AmazonInfo.MetaDataKey.instanceId, "i-12345")
                .build();
        Assert.assertEquals(expected, nonCompact(info));
    }