public void infoTestOptionsNullOrigin() throws Exception {
final SockJsServiceFactory factory = echoService();
final EmbeddedChannel ch = channelForMockService(factory.config());
final FullHttpRequest request = httpRequest(factory.config().prefix() + "/info", OPTIONS);
request.headers().set(ORIGIN, "null");
ch.writeInbound(request);
final HttpResponse response = ch.readOutbound();
assertThat(response.getStatus(), is(HttpResponseStatus.NO_CONTENT));
assertCORSPreflightResponseHeaders(response);
SockJsTestUtil.assertCORSHeaders(response, "*");
}