### Question:
PingFrame extends Frame { @Override public void write(final ByteBuf bb) { bb.writeByte(getType().getType()); } private  PingFrame(); static PingFrame parse(final ByteBuf bb); @Override int calculateLength(); @Override void write(final ByteBuf bb); @Override String toString(); static final PingFrame INSTANCE; }### Answer:
@Test public void write() { final ByteBuf bb = Unpooled.buffer(); final PingFrame frame = PingFrame.INSTANCE; frame.write(bb); TestUtil.assertBuffer("01", bb); }