### Question:
ServerMessageFactory { public Message generateLogoutResponse(boolean success) { Message logoutResponse = MessageRegistry.getInstance().createMessage("LogoutResponse"); logoutResponse.setArgument("success", success); return logoutResponse; }  Message generateLogoutResponse(boolean success); Message generateLoginResponse(boolean success, long loggedInTime);  }### Answer:
@Test public void testGenerateLogoutResponse() { ServerMessageFactory serverMessageFactory = new ServerMessageFactory(); Message message = serverMessageFactory.generateLogoutResponse(true); assertEquals(message.name, "LogoutResponse"); assertEquals(message.getArgument("success"), true); }