private static void sendRequestAndAssert(HandlerHolder holder) throws Exception {
holder.correlator.onNewServerRequest(holder.requestId, new ContextsContainerImpl(holder.keySupplier));
try {
DefaultHttpRequest request = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "");
holder.addSerializedContext(request, CTX_1_NAME, CTX_1_VAL, new BidirectionalTestContextSerializer());
holder.handler.write(holder.ctx, request, holder.ctx.newPromise());
Assert.assertNotNull("Context container not set after request sent.",
ContextAttributeStorageHelper.getContainer(holder.ctx, holder.requestId));