<BUG>WebSocketFrame binaryFrame = FrameBuilder.binary(BufferUtil.toArray(bb)).asFrame();</BUG><CONTEXT>for ( int i = 0 ; i < length ; ++i){bb.put("*".getBytes());}bb.flip();<extra_id_0>Generator generator = new Generator(policy);ByteBuffer actual = generator.generate(binaryFrame);ByteBuffer expected = ByteBuffer.allocate(length + 5);</CONTEXT>
WebSocketFrame binaryFrame = WebSocketFrame.binary(BufferUtil.toArray(bb));