DatagramPacketEncoder extends MessageToMessageEncoder<AddressedEnvelope<M, InetSocketAddress>> { @Override public boolean isSharable() { return encoder.isSharable(); } DatagramPacketEncoder(MessageToMessageEncoder<? super M> encoder); @Override boolean acceptOutboundMessage(Object msg); @Override void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise); @Override void connect(
            ChannelHandlerContext ctx, SocketAddress remoteAddress,
            SocketAddress localAddress, ChannelPromise promise); @Override void disconnect(ChannelHandlerContext ctx, ChannelPromise promise); @Override void close(ChannelHandlerContext ctx, ChannelPromise promise); @Override void deregister(ChannelHandlerContext ctx, ChannelPromise promise); @Override void read(ChannelHandlerContext ctx); @Override void flush(ChannelHandlerContext ctx); @Override void handlerAdded(ChannelHandlerContext ctx); @Override void handlerRemoved(ChannelHandlerContext ctx); @Override void exceptionCaught(ChannelHandlerContext ctx, Throwable cause); @Override boolean isSharable();  }
@Test public void testIsSharable() { testSharable(true); }