    # File lib/fog/hp/requests/compute/create_image.rb, line 34
            def create_image(server_id, name, metadata = {})
              response = Excon::Response.new
              response.status = 202

              image_id = Fog::Mock.random_numbers(6).to_s

              data = {
                'id'        => image_id,
                'server'    => {"id"=>"3", "links"=>[{"href"=>"http://nova1:8774/v1.1/servers/#{server_id}", "rel"=>"bookmark"}]},
                'links'     => [{"href"=>"http://nova1:8774/v1.1/tenantid/images/#{image_id}", "rel"=>"self"}, {"href"=>"http://nova1:8774/tenantid/images/#{image_id}", "rel"=>"bookmark"}],
                'metadata'  => metadata || {},
                'name'      => name || "image_#{rand(999)}",
                'progress'  => 0,
                'status'    => 'SAVING',
                'updated'   => "",
                'created'   => ""
              }

              self.data[:last_modified][:images][data['id']] = Time.now
              self.data[:images][data['id']] = data
              response.headers = {'Content-Length' => '0', 'Content-Type' => 'text/html; charset=UTF-8', 'Date' => Time.now, 'Location' => "http://nova1:8774/v1.1/images/#{@image_id}"}
              response.body = "" # { 'image' => data } no data is sent
              response
            end