ResourceFactory factory = new InjectMockResourceFactory(beanProvider);
TransportDispatcher dispatcher = new DelegatingTransportDispatcher(new RestLiServer(config, factory, engine));
final FilterChain fc = FilterChains.empty().addLast(new ServerCompressionFilter(supportedCompression))
.addLast(new SimpleLoggingFilter());
return new HttpServerFactory(fc).createServer(port,
HttpServerFactory.DEFAULT_CONTEXT_PATH,
HttpServerFactory.DEFAULT_THREAD_POOL_SIZE,
dispatcher,
useAsyncServletApi,