SdkJsonProtocolFactory implements SdkJsonMarshallerFactory { @Override public String getContentType() { return getContentTypeResolver().resolveContentType(metadata); } SdkJsonProtocolFactory(JsonClientMetadata metadata); @Override StructuredJsonGenerator createGenerator(); @Override String getContentType(); ProtocolRequestMarshaller<T> createProtocolMarshaller(OperationInfo operationInfo, T origRequest); HttpResponseHandler<AmazonWebServiceResponse<T>> createResponseHandler(
            JsonOperationMetadata operationMetadata,
            Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller); HttpResponseHandler<AmazonServiceException> createErrorResponseHandler(
            JsonErrorResponseMetadata errorResponsMetadata);  }
@Test public void ionBinaryEnabledUsesIonBinaryContentType() { SdkJsonProtocolFactory protocolFactory = protocolFactory(IonEnabled.YES, IonBinaryEnabled.YES); assertEquals("application/x-amz-ion-1.0", protocolFactory.getContentType()); }
@Test public void ionBinaryDisabledUsesIonTextContentType() { SdkJsonProtocolFactory protocolFactory = protocolFactory(IonEnabled.YES, IonBinaryEnabled.NO); assertEquals("text/x-amz-ion-1.0", protocolFactory.getContentType()); }