<BUG>WebSocketFrame textFrame = FrameBuilder.text(builder.toString()).asFrame();</BUG><CONTEXT>StringBuilder builder = new StringBuilder();for (int i = 0; i < length; ++i){builder.append("*");}<extra_id_0>Generator generator = new Generator(policy);ByteBuffer actual = generator.generate(textFrame);ByteBuffer expected = ByteBuffer.allocate(length + 5);</CONTEXT>
WebSocketFrame textFrame = WebSocketFrame.text(builder.toString());