### Question:
DssTcpHandler extends SimpleChannelInboundHandler<Object> { @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { ctx.close(); }  @Override void channelReadComplete(ChannelHandlerContext ctx); @Override void exceptionCaught(ChannelHandlerContext ctx, Throwable cause);  }### Answer:
@Test void exceptionCaught() { mockChannelHandlerContextChannelId(ctx, "abcedf"); final DssTcpHandler handler = new DssTcpHandler(); handler.exceptionCaught(ctx, new Throwable()); Mockito.verify(ctx).close(); }