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

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