* Equivalent to BaseUrlGreeting.test_greeting in sockjs-protocol-0.3.3.py.
*/
@Test
public void baseUrlGreetingTestGreeting() throws Exception {
final SockJsServiceFactory factory = echoService();
final EmbeddedChannel ch = channelForMockService(factory.config());
ch.writeInbound(httpRequest(factory.config().prefix()));
final FullHttpResponse response = ch.readOutbound();
assertThat(response.getStatus().code(), is(HttpResponseStatus.OK.code()));
assertThat(response.headers().get(CONTENT_TYPE), equalTo("text/plain; charset=UTF-8"));
assertThat(response.content().toString(UTF_8), equalTo("Welcome to SockJS!\n"));