@Override
  public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) {
    throw new Error(ERROR_MESSAGE);
  }
A {@link ChannelOutboundHandler} that throws errors on write.
ambry-rest/src/test/java/com/github/ambry/rest/NettyResponseChannelTest.java