StendhalRPZone zone = new StendhalRPZone("shop");
Market market = Market.createShop();
zone.add(market);
Item item = SingletonRepository.getEntityManager().getItem("greater potion");
((StackableItem) item).setQuantity(6);
StackableItem erniesMoney = (StackableItem) SingletonRepository
.getEntityManager().getItem("money");
Integer price = Integer.valueOf(10);
erniesMoney.setQuantity(price);
george.equipToInventoryOnly(item);
Integer number = Integer.valueOf(5);
Offer offer = market.createOffer(george, item, price, number);
assertThat(offer.getItem().getName(), is("greater potion"));
assertThat(((StackableItem) offer.getItem()).getQuantity(), is(5));