// test the player before he becomes ghostmode
final Player ghosted = PlayerTestHelper.createPlayer("ghosted");
zone.add(ghosted);
MockStendhalRPRuleProcessor.get().addPlayer(ghosted);
action.put(Actions.TARGET, ghosted.getName());
pq.onAction(player, action);
assertThat(player.events().get(0).get("text"), equalTo("ghosted is in zone at (0,0)"));
player.clearEvents();
// test the player after he becomes ghostmode
ghosted.setGhost(true);