### Question:
PaddingFrame extends Frame { @Override public void write(final ByteBuf bb) { final byte[] b = new byte[length]; bb.writeBytes(b); } PaddingFrame(final int length); static PaddingFrame parse(final ByteBuf bb); @Override int calculateLength(); @Override void write(final ByteBuf bb); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void writeOne() { final PaddingFrame frame = new PaddingFrame(1); final ByteBuf bb = Unpooled.buffer(); frame.write(bb); TestUtil.assertBuffer("00", bb); }