UnknownHandler extends ProtocolMessageHandler<UnknownMessage> { @Override public UnknownSerializer getSerializer(UnknownMessage message) { return new UnknownSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } UnknownHandler(TlsContext tlsContext); @Override UnknownParser getParser(byte[] message, int pointer); @Override UnknownPreparator getPreparator(UnknownMessage message); @Override UnknownSerializer getSerializer(UnknownMessage message); @Override void adjustTLSContext(UnknownMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new UnknownMessage()) instanceof UnknownSerializer); }