SheepTestHelper.generateRPClasses();
final RPAction action = new RPAction();
final NameAction nameAction = new NameAction();
action.put("target", "oldname");
action.put("args", "01234567890123456789");
final Sheep pet = new Sheep();
pet.setTitle("oldname");
zone.add(pet);
final Player bob = PlayerTestHelper.createPlayer("bob");
zone.add(bob);
bob.setSheep(pet);
nameAction.onAction(bob, action);
assertThat(bob.events().get(0).get("text"), is("You changed the name of 'oldname' to '01234567890123456789'"));
assertThat(pet.getTitle(), is("01234567890123456789"));
}