title: Moq a static method in static class
body: <pre><code> public Product GetbyID(int id)
      {            
              try
              {
                 //mycode Product p=..........
  
              }
              catch (DataAccessException ex)
              {
                  throw new BusinessException(ex.ErrorCode);
              }
              catch (Exception ex)
              {
                  BusinessExceptionHandler.LogException(ex);
              }
  
          return p;
      }
  </code></pre>
  
  <p>Given above is a code snippet that i need to write test cases.
  here LogException(ex); is a static method in static  class  BusinessExceptionHandler</p>
  
  <p>I have reference to Moq frame work 2.6.1014.1</p>
  
  <p>How can I Moq the method BusinessExceptionHandler.LogException</p>
  
  <p>I do prefer a mocking mechanism that don't need any change in method GetbyID</p>