/**
* Test method for {@link SwarmAction#equals(Object)}
*/
public void testEqualsObject()
{
WaspAction action = new SwarmAction(5, "test", KEY);
// null
assertFalse(action.equals(null));
// reflexive
assertEquals(action, action);
// symmetric
WaspAction action2 = new SwarmAction(5, "test", KEY);
assertEquals(action, action2);
assertEquals(action2, action);
WaspAction action3 = new SwarmAction(6, "test2", KEY);
assertFalse(action.equals(action3));
assertFalse(action3.equals(action));
// transitive
WaspAction action4 = new TestAction(5, "test", KEY);
assertEquals(action, action4);
assertEquals(action4, action2);
// action2 already equals action
// consistent
// action is inmutable so it is consistent