### Question:
StartupMessage extends PGMessage { public String getUser() { return user; } 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 testGetUser() throws Exception { StartupMessage startupMessage = StartupMessage.loadFromPacket(withDatabasePacket); String expectedUser = "root"; assertEquals(startupMessage.getUser(), expectedUser); }