private void serve() {
    Socket socket = null;
    try {
      socket = server.accept();
      byte[] bytes = new byte[128];
      rand.nextBytes(bytes);
      socket.getOutputStream().write(bytes);
      socket.getOutputStream().flush();
    } catch (Exception e) {
      LOG.warn("failed to process request", e);
    } finally {
      if (socket != null) {
        try {
          socket.close();
        } catch (IOException e1) {
          LOG.warn("failed to close socket");
        }
      }
    }
  }
A simple UT to make sure that we do not leak the SslExceptions to netty's TailContext, where it
will generate a confusing WARN message.
<p>
See HBASE-27782 for more details.
hbase-client/src/test/java/org/apache/hadoop/hbase/ipc/TestTLSHandshadeFailure.java