public void testOnActionIteminChest() {
MockStendlRPWorld.get();
ChestTestHelper.generateRPClasses();
final UseAction ua = new UseAction();
final Player player = PlayerTestHelper.createPlayer("bob");
final Chest chest = new Chest();
final Item cheese = SingletonRepository.getEntityManager().getItem("cheese");
chest.add(cheese);
final StendhalRPZone zone = new StendhalRPZone("zone");
zone.collisionMap.clear();
player.setPosition(1, 1);
chest.setPosition(1, 2);
zone.add(player);
zone.add(chest);
chest.open();
final RPAction action = new RPAction();
action.put(BASEITEM, cheese.getID().getObjectID());
action.put(BASEOBJECT, chest.getID().getObjectID());
action.put(BASESLOT, "content");
assertFalse(player.has("eating"));
ua.onAction(player, action);
assertTrue(player.has("eating"));
}