Stopper stopper = () -> {
throw new UnsupportedOperationException("stopping not supported while unit testing");
};
ResponseTransmitter responseTransmitter = new ResponseTransmitter() {
@Override
public void transmit(HttpResponseStatus status, ByteBuf byteBuf) {
sentResponse = true;
body = new byte[byteBuf.readableBytes()];
byteBuf.readBytes(body);