@Test
public void testOfferAppliesToItemsInCategoryAndOrderValueGreaterThanFifty() {
//----------------------------------------------------------------------------------------------------
// Mock up some order data
OrderImpl order = new OrderImpl();
CategoryImpl category = new CategoryImpl();
category.setName("t-shirt");
DiscreteOrderItemImpl orderItem = new DiscreteOrderItemImpl();
ProductImpl product = new ProductImpl();
ArrayList<CategoryProductXref> categories = new ArrayList<CategoryProductXref>();
CategoryProductXref categoryXref = new CategoryProductXrefImpl();
categoryXref.setProduct(product);
categoryXref.setCategory(category);
categories.add(categoryXref);
product.setAllParentCategoryXrefs(categories);
orderItem.setProduct(product);
order.getOrderItems().add(orderItem);
order.setSubTotal(new Money(110D));
//Set up MVEL Context
ParserContext context = new ParserContext();
//Import OfferType into the MVEL context since it may be used