### Question:
PasswordMessage extends PGMessage { public static PasswordMessage loadFromPacket(byte[] packet) { PGProto proto = new PGProto(packet, 5); String password = proto.readNullStr(); return new PasswordMessage(password); } PasswordMessage(byte[] password);  PasswordMessage(String password);  PasswordMessage(String user, String password, byte[] salt);  PasswordMessage(byte[] user, byte[] password, byte[] salt); String getPassword(); static PasswordMessage loadFromPacket(byte[] packet); @Override String toString();  }### Answer:
@Test public void testLoadFromPacket() { PasswordMessage passwordMessage = PasswordMessage.loadFromPacket(packet); String expectedPassword = "md52bf320b2f4d5724b887efb70ccedae8f"; assertEquals(passwordMessage.getPassword(), expectedPassword); }