public function testExecuteProgramFail()
 {
     $mockTest = $this->_mgr->getProgram('Test_Mock');
     $mockTest->PROD_ID = 'xyz101';
     $mockTest->STORE_LOC = 'a1001';
     $mockTest->PRICE = 1;
     // This should fail for a mock adapter
     try {
         $mockTest->execute();
         $this->assertTrue(false, 'A model that does not match ALL parameters should throw a Itk_Connection_Adapter_Exception with the Mock adapter');
     } catch (Itk_Connection_Adapter_Exception $e) {
     }
 }
 public function testExecuteProgram()
 {
     $mgr = new Itk_Connection_Manager(array('adapter' => 'Mock', 'programDir' => dirname(__FILE__) . '/testdata/programs'));
     $mockTest = $mgr->getProgram('Test_Mock');
     $mockTest->PROD_ID = 'xyz101';
     $mockTest->STORE_LOC = 'a1001';
     $mockTest->PRICE = 0;
     $res = $mockTest->execute();
     $this->assertType('Itk_Pgm_Result', $res);
     $this->assertEquals($res->AMOUNT, 10.99);
 }