### Question:
Describe extends PGMessage { public static Describe loadFromPacket(byte[] packet) { PGProto proto = new PGProto(packet, 5); byte describe = proto.readByte(); String statement = proto.readNullStr(); return new Describe(describe, statement); } Describe(byte describe);  Describe(byte describe, String statement); String getStatement(); void setStatement(String statement); static Describe loadFromPacket(byte[] packet); @Override String toString(); static final byte PREPARE_STATEMENT; static final byte PORTAL; final byte describe; }### Answer:
@Test public void testLoadFromPacket() { byte describe = Describe.PREPARE_STATEMENT; String statement = "py:0x1023d39b0"; Describe desc = new Describe(describe, statement); byte[] bytes = desc.toPacket(); Describe newDesc = Describe.loadFromPacket(bytes); assertEquals(newDesc.toPacket(), bytes); assertEquals(newDesc.describe, describe); assertEquals(newDesc.getStatement(), statement); }