### Question:
ParameterDescription extends PGMessage { public static ParameterDescription loadFromPacket(byte[] packet) { PGProto proto = new PGProto(packet, 5); int paramCount = proto.readInt16(); if (paramCount <= 0) { return new ParameterDescription(); } int[] paramIds = new int[paramCount]; for (int i = 0; i < paramCount; i++) { paramIds[i] = proto.readInt32(); } return new ParameterDescription(paramIds); } ParameterDescription();  ParameterDescription(int[] paramIds); int[] getParamIds(); void setParamIds(int[] paramIds); int getParamCount(); static ParameterDescription loadFromPacket(byte[] packet); @Override String toString();  }### Answer:
@Test public void testLoadFromPacket() { int[] paramIds = new int[] {23, 1043}; ParameterDescription pd = new ParameterDescription(paramIds); byte[] bytes = pd.toPacket(); ParameterDescription newPd = ParameterDescription.loadFromPacket(bytes); assertEquals(newPd.toPacket(), bytes); assertEquals(newPd.getParamCount(), paramIds.length); assertEquals(newPd.getParamIds(), paramIds); }