ServerHelloHandler extends HandshakeMessageHandler<ServerHelloMessage> { @Override public ServerHelloParser getParser(byte[] message, int pointer) { return new ServerHelloParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } ServerHelloHandler(TlsContext tlsContext); @Override ServerHelloPreparator getPreparator(ServerHelloMessage message); @Override ServerHelloSerializer getSerializer(ServerHelloMessage message); @Override ServerHelloParser getParser(byte[] message, int pointer); @Override void adjustTLSContext(ServerHelloMessage message); @Override void adjustTlsContextAfterSerialize(ServerHelloMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof ServerHelloParser); }