ChangeCipherSpecHandler extends ProtocolMessageHandler<ChangeCipherSpecMessage> { @Override public ChangeCipherSpecPreparator getPreparator(ChangeCipherSpecMessage message) { return new ChangeCipherSpecPreparator(tlsContext.getChooser(), message); } 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 testGetPreparator() { assertTrue(handler.getPreparator(new ChangeCipherSpecMessage()) instanceof ChangeCipherSpecPreparator); }