UnknownHandshakeHandler extends HandshakeMessageHandler<UnknownHandshakeMessage> { @Override public UnknownHandshakeSerializer getSerializer(UnknownHandshakeMessage message) { return new UnknownHandshakeSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } UnknownHandshakeHandler(TlsContext tlsContext); @Override void adjustTLSContext(UnknownHandshakeMessage message); @Override UnknownHandshakeParser getParser(byte[] message, int pointer); @Override UnknownHandshakePreparator getPreparator(UnknownHandshakeMessage message); @Override UnknownHandshakeSerializer getSerializer(UnknownHandshakeMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new UnknownHandshakeMessage()) instanceof UnknownHandshakeSerializer); }