title: Using RhinoMocks, how do you mock or stub a concrete class without an empty constructor?
body: <p>Mocking a concrete class with Rhino Mocks seems to work pretty easy when you have an empty constructor on a class:</p>
  
  <pre><code>public class MyClass{
       public MyClass() {}
  }
  </code></pre>
  
  <p>But if I add a constructor that takes parameters and remove the one that doesn't take parameters:</p>
  
  <pre><code>public class MyClass{
       public MyClass(MyOtherClass instance) {}
  }
  </code></pre>
  
  <p>I tend to get an exception:</p>
  
  <blockquote>
    <p>System.MissingMethodException : Can't
    find a constructor with matching
    arguments</p>
  </blockquote>
  
  <p>I've tried putting in nulls in my call to Mock or Stub, but it doesn't work.</p>
  
  <p>Can I create mocks and stubs of concrete classes that lack parameter-less constructors?</p>