function testEventOnRemovePosition()
 {
     $this->setUp();
     $cart = new EShoppingCart();
     $this->testVar = false;
     $cart->attachEventHandler('onRemovePosition', array($this, 'testEventHandler'));
     $book = Book::model()->findByPk(1);
     $cart->put($book);
     $cart->remove($book->getId());
     $this->assertTrue($cart->hasEvent('onRemovePosition'));
     $this->assertTrue($cart->hasEventHandler('onRemovePosition'));
     $this->assertTrue($this->testVar);
 }