# File tests/drivers/rhevm/instances_test.rb, line 30
    def test_01_02_it_can_create_instance_with_hardware_profile
      params = {
        :image_id => '3e82e2d5-913f-4095-ae72-ebcfa9d0571d',
        :name => 'dc-webmock-2',
        :hwp_id => 'SERVER',
        'api[driver]''api[driver]' => 'rhevm',
      }
      post_url '/api/instances', params
      last_response.status.should == 201 # Created
      @@instance2 = last_xml_response
      (@@instance2/'instance').length.should > 0
      (@@instance2/'instance/name').first.text.should_not == nil
      (@@instance2/'instance/name').first.text.should == 'dc-webmock-2'
      (@@instance2/'instance/owner_id').first.text.should_not == ''
      (@@instance2/'instance/owner_id').first.text.should == ENV['API_USER']
      (@@instance2/'instance/state').first.text.should == 'PENDING'
    end