    # File lib/fog/aws/requests/compute/create_snapshot.rb, line 43
            def create_snapshot(volume_id, description = nil)
              response = Excon::Response.new
              if volume = self.data[:volumes][volume_id]
                response.status = 200
                snapshot_id = Fog::AWS::Mock.snapshot_id
                data = {
                  'description' => description,
                  'ownerId'     => self.data[:owner_id],
                  'progress'    => nil,
                  'snapshotId'  => snapshot_id,
                  'startTime'   => Time.now,
                  'status'      => 'pending',
                  'volumeId'    => volume_id,
                  'volumeSize'  => volume['size']
                }
                self.data[:snapshots][snapshot_id] = data
                response.body = {
                  'requestId' => Fog::AWS::Mock.request_id
                }.merge!(data)
              else
                response.status = 400
                raise(Excon::Errors.status_error({:expects => 200}, response))
              end
              response
            end