# File tests/drivers/rhevm/instances_test.rb, line 30
    def test_01_02_it_can_create_instance_with_hardware_profile
      params = {
        :image_id => 'bb2e79bd-fd73-46a1-b391-a390b1998f03',
        :name => 'mock-test2',
        :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 == 'mock-test2'
      (@@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