UnknownHandshakeHandler extends HandshakeMessageHandler<UnknownHandshakeMessage> { @Override public UnknownHandshakeParser getParser(byte[] message, int pointer) { return new UnknownHandshakeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } 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 testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof UnknownHandshakeParser); }