FinishedHandler extends HandshakeMessageHandler<FinishedMessage> { @Override public FinishedSerializer getSerializer(FinishedMessage message) { return new FinishedSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } 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 testGetSerializer() { assertTrue(handler.getSerializer(new FinishedMessage()) instanceof FinishedSerializer); }