public function testOrderLoadedByIncrementIdIfNoOrderIdInPost()
 {
     $this->expectOrderIdInRequestPresent(FALSE);
     $checkout = $this->getMock("stdClass", array("getLastRealOrderId"));
     $checkout->expects($this->once())->method("getLastRealOrderId")->will($this->returnValue(self::ORDER_INCREMENT_ID));
     $this->controller->expects($this->atLeastOnce())->method("_getCheckout")->will($this->returnValue($checkout));
     $this->order_model->expects($this->once())->method("loadByIncrementId")->with(self::ORDER_INCREMENT_ID)->will($this->throwException(new Test_Exception("STOP", 400)));
     // Stop testing from here on.
     $this->setExpectedException("Test_Exception", "STOP", 400);
     $this->controller->_construct();
     $this->controller->paymentAction();
 }