@Test
public void rawWebSocketUpgradeRequest() throws Exception {
final SimplePushServerConfig simplePushConfig = DefaultSimplePushConfig.create().password("test").build();
final SockJsConfig sockjsConf = SockJsConfig.withPrefix("/simplepush").webSocketProtocols("push-notification").build();
final byte[] privateKey = CryptoUtil.secretKey(simplePushConfig.password(), "someSaltForTesting".getBytes());
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");