FinishedHandler extends HandshakeMessageHandler<FinishedMessage> { @Override public FinishedPreparator getPreparator(FinishedMessage message) { return new FinishedPreparator(tlsContext.getChooser(), message); } FinishedHandler(TlsContext context); @Override FinishedParser getParser(byte[] message, int pointer); @Override FinishedPreparator getPreparator(FinishedMessage message); @Override FinishedSerializer getSerializer(FinishedMessage message); @Override void adjustTLSContext(FinishedMessage message); @Override void adjustTlsContextAfterSerialize(FinishedMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new FinishedMessage()) instanceof FinishedPreparator); }