public function testFindID()
 {
     try {
         $controller = new HTML_QuickForm2_Controller();
         $this->fail('Expected HTML_QuickForm2_NotFoundException was not thrown');
     } catch (HTML_QuickForm2_NotFoundException $e) {
     }
     $_REQUEST[HTML_QuickForm2_Controller::KEY_ID] = 'foo';
     try {
         $controller = new HTML_QuickForm2_Controller();
         $this->fail('Expected HTML_QuickForm2_NotFoundException was not thrown');
     } catch (HTML_QuickForm2_NotFoundException $e) {
     }
     $_SESSION[sprintf(HTML_QuickForm2_Controller::KEY_CONTAINER, 'foo')] = array('datasources' => array(), 'values' => array(), 'valid' => array());
     $controller = new HTML_QuickForm2_Controller(null, true, false);
     $this->assertEquals('foo', $controller->getId());
     $this->assertTrue($controller->isWizard());
     $this->assertTrue($controller->propagateId());
 }