MessageToClientEncoder implements Encoder.Text<MessageToClient> { @Override public void destroy() { }  @Override String encode(MessageToClient object); @Override void init(EndpointConfig config); @Override void destroy();  }
@Test public void testDestroy() { System.out.println("destroy"); messageToClientEncoder.destroy(); }