@Test public void testIsValidTarget() { World world = new WorldImpl(1, 1, null, null); WorldObject performer = createPerformer(2); WorldObject target = createVotingBox(world); target.setProperty(Constants.ORGANIZATION_ID, 7); assertEquals(true, Actions.VOTE_FOR_LEADER_ACTION.isValidTarget(performer, target, world)); assertEquals(false, Actions.VOTE_FOR_LEADER_ACTION.isValidTarget(performer, performer, world)); }