PublishResultCoders { public static Coder<PublishResult> fullPublishResultWithoutHeaders() { return new PublishResultCoder( RESPONSE_METADATA_CODER, NullableCoder.of(AwsCoders.sdkHttpMetadataWithoutHeaders())); } private  PublishResultCoders(); static Coder<PublishResult> defaultPublishResult(); static Coder<PublishResult> fullPublishResult(); static Coder<PublishResult> fullPublishResultWithoutHeaders();  }
@Test public void testFullPublishResultWithoutHeadersDecodeEncodeEquals() throws Exception { CoderProperties.coderDecodeEncodeEqual( PublishResultCoders.fullPublishResultWithoutHeaders(), new PublishResult().withMessageId(UUID.randomUUID().toString())); PublishResult value = buildFullPublishResult(); PublishResult clone = CoderUtils.clone(PublishResultCoders.fullPublishResultWithoutHeaders(), value); assertThat( clone.getSdkResponseMetadata().getRequestId(), equalTo(value.getSdkResponseMetadata().getRequestId())); assertThat( clone.getSdkHttpMetadata().getHttpStatusCode(), equalTo(value.getSdkHttpMetadata().getHttpStatusCode())); assertThat(clone.getSdkHttpMetadata().getHttpHeaders().isEmpty(), equalTo(true)); }