### Question:
JsonpSendTransport extends AbstractSendTransport { @Override public String toString() { return StringUtil.simpleClassName(this) + "[config=" + config + ']'; } JsonpSendTransport(final SockJsConfig config); @Override void respond(final ChannelHandlerContext ctx, final FullHttpRequest request); @Override String toString();  }### Answer:
@Test public void messageReceivedNoPayload() { final FullHttpResponse response = processHttpRequest(requestWithBody(null)); assertThat(response.getStatus(), equalTo(HttpResponseStatus.INTERNAL_SERVER_ERROR)); assertThat(response.getProtocolVersion(), equalTo(HttpVersion.HTTP_1_1)); assertThat(response.content().toString(CharsetUtil.UTF_8), equalTo("Payload expected.")); }
@Test public void messageReceivedNoPayloadHttpVersion1_0() { final FullHttpResponse response = processHttpRequest(requestWithBody(null, HttpVersion.HTTP_1_0)); assertThat(response.getStatus(), equalTo(HttpResponseStatus.INTERNAL_SERVER_ERROR)); assertThat(response.getProtocolVersion(), equalTo(HttpVersion.HTTP_1_0)); assertThat(response.content().toString(CharsetUtil.UTF_8), equalTo("Payload expected.")); }
@Test public void messageReceived() { final String body = "[\"some message\"]"; final FullHttpResponse response = processHttpRequest(requestWithBody(body)); assertThat(response.getStatus(), equalTo(HttpResponseStatus.OK)); assertThat(response.getProtocolVersion(), equalTo(HttpVersion.HTTP_1_1)); assertThat(response.content().toString(CharsetUtil.UTF_8), equalTo("ok")); SockJsTestUtil.verifyDefaultResponseHeaders(response, Transports.CONTENT_TYPE_PLAIN); }
@Test public void messageReceivedNoFormDataParameter() { final FullHttpResponse response = processHttpRequest(requestWithFormData(null)); assertThat(response.getStatus(), equalTo(HttpResponseStatus.INTERNAL_SERVER_ERROR)); assertThat(response.getProtocolVersion(), equalTo(HttpVersion.HTTP_1_1)); assertThat(response.content().toString(CharsetUtil.UTF_8), equalTo("Payload expected.")); }
@Test public void messageReceivedFormDataParameter() { final String data = "[\"some message\"]"; final FullHttpResponse response = processHttpRequest(requestWithFormData(data)); assertThat(response.getStatus(), equalTo(HttpResponseStatus.OK)); assertThat(response.getProtocolVersion(), equalTo(HttpVersion.HTTP_1_1)); assertThat(response.content().toString(CharsetUtil.UTF_8), equalTo("ok")); SockJsTestUtil.verifyDefaultResponseHeaders(response, Transports.CONTENT_TYPE_PLAIN); }