pollXhrHelloMessageResponse(factory, sessionUrl);
final FullHttpResponse registerChannelIdRequest = sendXhrRegisterChannelIdRequest(factory, sessionUrl, channelId);
assertThat(registerChannelIdRequest.getStatus(), is(HttpResponseStatus.NO_CONTENT));
final RegisterResponseImpl registerChannelIdResponse = pollXhrRegisterChannelIdResponse(factory, sessionUrl);
assertThat(registerChannelIdResponse.getChannelId(), equalTo(channelId));
assertThat(registerChannelIdResponse.getStatus().getCode(), equalTo(200));
assertThat(registerChannelIdResponse.getPushEndpoint().startsWith("http://127.0.0.1:7777/update/"), is(true));
}