private void onResponseCompleteUnderWriteFailureTest(TestingUri uri) {
    MockNettyMessageProcessor processor = new MockNettyMessageProcessor();
    ExceptionOutboundHandler exceptionOutboundHandler = new ExceptionOutboundHandler(new Exception());
    EmbeddedChannel channel = new EmbeddedChannel(exceptionOutboundHandler, processor);
    // no exception because onResponseComplete() swallows it.
    channel.writeInbound(RestTestUtils.createRequest(HttpMethod.GET, uri.toString(), null));
    assertFalse("Channel is not closed at the remote end", channel.isActive());
  }
Checks that no exceptions are thrown by {@link RestResponseChannel#onResponseComplete(Exception)} when
there are write failures.
@param uri the uri to hit.
ambry-rest/src/test/java/com/github/ambry/rest/NettyResponseChannelTest.java