ChangeCipherSpecMessage extends ProtocolMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("ChangeCipherSpecMessage:"); sb.append("\n CCS ProtocolType: "); if (ccsProtocolType != null && ccsProtocolType.getValue() != null) { sb.append(String.format("%02X ", ccsProtocolType.getValue())); } else { sb.append("null"); } return sb.toString(); } ChangeCipherSpecMessage(Config tlsConfig);  ChangeCipherSpecMessage(); ModifiableByte getCcsProtocolType(); void setCcsProtocolType(ModifiableByte ccsProtocolType); void setCcsProtocolType(byte value); @Override String toString(); @Override String toCompactString(); @Override ProtocolMessageHandler getHandler(TlsContext context);  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("ChangeCipherSpecMessage:"); sb.append("\n CCS ProtocolType: ").append("null"); assertEquals(sb.toString(), message.toString()); }