@Test
public void addRoundingLineItem_shouldAddARoundingLineItemWithTheAppropriateValue()
        throws Exception {

	CashierOptions cashierOptions = cashOptService.getOptions();
	Assert.assertEquals(5, (int)cashierOptions.getRoundToNearest());
	// Test bill
	Bill bill = new Bill();
	BillLineItem item = new BillLineItem();
	Item lineItemItem = new Item(1);
	item.setItem(lineItemItem);
	item.setLineItemOrder(0);
	item.setPrice(new BigDecimal(3));
	item.setQuantity(1);
	bill.addLineItem(item);
	// One line item
	Assert.assertEquals(1, bill.getLineItems().size());
	// Do rounding
	RoundingUtil.handleRoundingLineItem(bill);
	// Now two line items
	Assert.assertEquals(2, bill.getLineItems().size());
	// Assert rounding item's price
	BillLineItem rounding = bill.getLineItems().get(1);
	Assert.assertEquals(new BigDecimal(2), rounding.getTotal());
	// Assert evenly divisible by nearest
	Assert.assertEquals(new BigDecimal(0), bill.getTotal().remainder(
	    new BigDecimal(cashierOptions.getRoundToNearest())));
}