public static Coder<PublishResult> fullPublishResult() {
    return new PublishResultCoder(
        RESPONSE_METADATA_CODER, NullableCoder.of(AwsCoders.sdkHttpMetadata()));
  }
@Test
  public void testFullPublishResultIncludingHeadersDecodeEncodeEquals() throws Exception {
    CoderProperties.coderDecodeEncodeEqual(
        PublishResultCoders.fullPublishResult(),
        new PublishResult().withMessageId(UUID.randomUUID().toString()));

    PublishResult value = buildFullPublishResult();
    PublishResult clone = CoderUtils.clone(PublishResultCoders.fullPublishResult(), value);
    assertThat(
        clone.getSdkResponseMetadata().getRequestId(),
        equalTo(value.getSdkResponseMetadata().getRequestId()));
    assertThat(
        clone.getSdkHttpMetadata().getHttpStatusCode(),
        equalTo(value.getSdkHttpMetadata().getHttpStatusCode()));
    assertThat(
        clone.getSdkHttpMetadata().getHttpHeaders(),
        equalTo(value.getSdkHttpMetadata().getHttpHeaders()));
  }