title: How to mock OwinContext.Request.Query
body: <p>I am trying to unit test a method which checks for Query in <code>OwinContext.Request.Query</code> and alters it</p>
  
  <pre><code>public static async Task SetUpQuery(IOwinContext context, IClientStore clientConfig)
  {
      // Get the ClientId from Querystring
      var clientIdQs = context.Request.Query.Where(x =&gt; x.Key == Constants.AuthorizeRequest.ClientId).Select(x =&gt; x.Value).FirstOrDefault();
      // Some more code here
  }
  </code></pre>
  
  <p>I am using Moq to mock the context. How do I mock <code>Query</code> object which is of type <code>IReadableStringCollection</code></p>