### Question:
StartupMessage extends PGMessage { public void addArgs(String argName, String argValue) { parameters.put(argName, argValue); } StartupMessage(String user, String database);  StartupMessage(String user); Map<String, String> getArgs(); void addArgs(String argName, String argValue); void addArgsIfAbsent(String argName, String argValue); String getUser(); String getDatabase(); void setProtocolVersionNum(int protocolVersionNum); static StartupMessage loadFromPacket(byte[] packet); static StartupMessage loadFromVirtualPacket(byte[] packet); @Override String toString(); static final int PROTOCOL_VERSION_NUM; }### Answer:
@Test public void testAddArgs() { StartupMessage startupMessage = new StartupMessage("root", "pgtestdb"); startupMessage.addArgs("application_name", "Postico 1.0.10"); startupMessage.addArgs("client_encoding", "UNICODE"); assertTrue(Arrays.equals(startupMessage.toPacket(), withArgsPacket)); }