title: How to Mock instanceof in Mockito
body: <p>I have a piece of code, what I want test with Mockito:</p>
  
  <pre><code>mockedClass instanceof SampleInterface
  </code></pre>
  
  <p>The <code>mockedClass</code> is mocked abstract class: <code>MockedClass</code>  , and the  <code>SampleInterface</code> is an Interface. This is the failing point:</p>
  
  <pre><code>Validate.isTrue(mockedClass instanceof SampleInterface, "The mockedClass is not a SampleInterface");
  </code></pre>
  
  <p>How to mock this code?</p>