/**
* Test method for {@link SwarmAction#add(WaspAction)}
*/
public void testAddWaspAction()
{
ActionFactory factory = Actions.getActionFactory(KEY);
SwarmAction action = (SwarmAction) factory.getAction(Render.class);
assertEquals(2, action.actions());
SwarmAction action2 = action.add(factory.getAction(Access.class));
assertEquals(2, action.actions()); // check inmutability
assertEquals(2, action2.actions());
assertNotSame(action, action2);
SwarmAction action3 = action.add(factory.getAction(Enable.class));
assertEquals(2, action.actions());
assertEquals(6, action3.actions());
}