### Question:
RowDataPacket extends AbstractPacket { @Override public void fromByteBuf(final ByteBuf data) { while (data.isReadable()) { columns.add(DataTypesCodec.readLengthCodedString(data)); } }  @Override void fromByteBuf(final ByteBuf data);  }### Answer:
@Test public void assertFromByteBuf() { ByteBuf byteBuf = Unpooled.buffer(); byteBuf.writeByte(VALUE_1.length()); byteBuf.writeBytes(VALUE_1.getBytes()); byteBuf.writeByte(VALUE_2.length()); byteBuf.writeBytes(VALUE_2.getBytes()); RowDataPacket actual = new RowDataPacket(); actual.fromByteBuf(byteBuf); assertThat(actual.getColumns().size(), is(2)); assertThat(actual.getColumns().get(0), is(VALUE_1)); assertThat(actual.getColumns().get(1), is(VALUE_2)); }