BoltProtocolUtil { public static ByteBuf handshakeBuf() { return HANDSHAKE_BUF.duplicate(); } private  BoltProtocolUtil(); static ByteBuf handshakeBuf(); static String handshakeString(); static void writeMessageBoundary( ByteBuf buf ); static void writeEmptyChunkHeader( ByteBuf buf ); static void writeChunkHeader( ByteBuf buf, int chunkStartIndex, int headerValue ); static final int BOLT_MAGIC_PREAMBLE; static final BoltProtocolVersion NO_PROTOCOL_VERSION; static final int CHUNK_HEADER_SIZE_BYTES; static final int DEFAULT_MAX_OUTBOUND_CHUNK_SIZE_BYTES; }
@Test void shouldReturnHandshakeBuf() { assertByteBufContains( handshakeBuf(), BOLT_MAGIC_PREAMBLE, BoltProtocolV42.VERSION.toInt(), BoltProtocolV41.VERSION.toInt(), BoltProtocolV4.VERSION.toInt(), BoltProtocolV3.VERSION.toInt() ); }