### Question:
StartupMessage extends PGMessage { public Map<String, String> getArgs() { Map<String, String> args = new LinkedHashMap<>(parameters); args.remove("user"); args.remove("database"); return args; } 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 testGetArgs() throws Exception { Map<String, String> expectArgs = new LinkedHashMap<>(); expectArgs.put("application_name", "Postico 1.0.10"); expectArgs.put("client_encoding", "UNICODE"); StartupMessage startupMessage = StartupMessage.loadFromPacket(withArgsPacket); assertEquals(startupMessage.getArgs(), expectArgs); }