ServerHelloDoneHandler extends HandshakeMessageHandler<ServerHelloDoneMessage> { @Override public ServerHelloDonePreparator getPreparator(ServerHelloDoneMessage message) { return new ServerHelloDonePreparator(tlsContext.getChooser(), message); } ServerHelloDoneHandler(TlsContext tlsContext); @Override ServerHelloDoneParser getParser(byte[] message, int pointer); @Override ServerHelloDonePreparator getPreparator(ServerHelloDoneMessage message); @Override ServerHelloDoneSerializer getSerializer(ServerHelloDoneMessage message); @Override void adjustTLSContext(ServerHelloDoneMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new ServerHelloDoneMessage()) instanceof ServerHelloDonePreparator); }