# File tests/drivers/mock/instances_test.rb, line 85
    def test_it_create_a_new_instance_using_image_id
      params = {
        :image_id => 'img1'
      }
      post_url '/api/instances', params
      last_response.status.should == 201
      last_response.headers['Location'].should_not == nil
      get_auth_url last_response.headers['Location'], {}
      (last_xml_response/'instance/name').should_not == nil
      add_created_instance (last_xml_response/'instance').first['id']
      test_instance_attributes(last_xml_response/'instance')
    end