final SimplePushServer pushServer = new DefaultSimplePushServer(new InMemoryDataStore(), simplePushConfig, privateKey);
final SimplePushServiceFactory factory = new SimplePushServiceFactory(sockjsConf, pushServer);
final EmbeddedChannel channel = createChannel(factory);
final FullHttpRequest request = websocketUpgradeRequest(factory.config().prefix() + Transports.Type.WEBSOCKET.path());
request.headers().set(Names.SEC_WEBSOCKET_PROTOCOL, "push-notification");
channel.writeInbound(request);
final FullHttpResponse response = decodeFullHttpResponse(channel);
assertThat(response.getStatus(), is(HttpResponseStatus.SWITCHING_PROTOCOLS));
assertThat(response.headers().get(HttpHeaders.Names.UPGRADE), equalTo("websocket"));
assertThat(response.headers().get(HttpHeaders.Names.CONNECTION), equalTo("Upgrade"));
assertThat(response.headers().get(Names.SEC_WEBSOCKET_PROTOCOL), equalTo("push-notification"));