public class MsgAddClickTest {
@Test
public void testSettingSessionIdsAndAddresses() throws Exception {
Address From = new Address();
Address To = new Address();
int sessionId = 1;
int gameSessionId = 2;
int sessionIdAdd = 3;
MsgAddClick msg = new MsgAddClick (From, To, sessionIdAdd,
gameSessionId, sessionId);
assertEquals(sessionId, msg.getSessionId());
assertEquals(gameSessionId, msg.getGameSessionId());
assertEquals(sessionIdAdd, msg.getSessionIdAdd());
assertTrue(From.equals(msg.getFrom()));
assertTrue(To.equals(msg.getTo()));
}