# File tests/drivers/rhevm/instances_test.rb, line 129
    def test_05_02_created_instance_can_be_stopped
      params = {
        'api[driver]''api[driver]' => 'rhevm',
      }
      post_url "/api/instances/#{(@@instance2/'instance').first[:id]}/stop", params
      last_response.status.should == 204
      20.times do |tick|
        get_auth_url "/api;driver=rhevm/instances/#{(@@instance2/'instance').first[:id]}", { :tick => tick}
        last_response.status.should_not == 500
        state = (last_xml_response/'instance/state').first.text
        break if state=='STOPPED'
        sleep(5)
      end
    end