# File tests/drivers/mock/instances_test.rb, line 164
    def test_z0_reboot_instance
      $created_instances.each do |instance_id|
        get_auth_url "/api/instances/#{instance_id}", {}
        reboot_url = (last_xml_response/'actions/link[@rel="reboot"]').first['href']
        reboot_url.should_not == nil
        post_url reboot_url
        last_response.status.should == 200
        instance = Nokogiri::XML(last_response.body)
        test_instance_attributes(instance)
        (instance/'state').text.should == 'RUNNING'
      end
    end