use of software.amazon.awssdk.services.sns.model.PublishResponse in project beam by apache.
the class PublishResponseCodersTest method testFullPublishResponseIncludingHeadersDecodeEncodeEquals.
@Test
public void testFullPublishResponseIncludingHeadersDecodeEncodeEquals() throws Exception {
CoderProperties.coderDecodeEncodeEqual(PublishResponseCoders.fullPublishResponse(), PublishResponse.builder().messageId(UUID.randomUUID().toString()).build());
PublishResponse value = buildFullPublishResponse();
PublishResponse clone = CoderUtils.clone(PublishResponseCoders.fullPublishResponse(), value);
assertThat(clone.responseMetadata().requestId(), equalTo(value.responseMetadata().requestId()));
assertThat(clone.sdkHttpResponse().statusCode(), equalTo(value.sdkHttpResponse().statusCode()));
assertThat(clone.sdkHttpResponse().headers(), equalTo(value.sdkHttpResponse().headers()));
}
Aggregations