ChangeCipherSpecHandler extends ProtocolMessageHandler<ChangeCipherSpecMessage> { @Override public ChangeCipherSpecSerializer getSerializer(ChangeCipherSpecMessage message) { return new ChangeCipherSpecSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } ChangeCipherSpecHandler(TlsContext tlsContext); @Override ChangeCipherSpecParser getParser(byte[] message, int pointer); @Override ChangeCipherSpecPreparator getPreparator(ChangeCipherSpecMessage message); @Override ChangeCipherSpecSerializer getSerializer(ChangeCipherSpecMessage message); @Override void adjustTLSContext(ChangeCipherSpecMessage message); @Override void adjustTlsContextAfterSerialize(ChangeCipherSpecMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new ChangeCipherSpecMessage()) instanceof ChangeCipherSpecSerializer); }