title: Can an abstract class be mocked using mockito?
body: <p>In a class under test, if its constructor takes in an abstract class parameter can we mock it using mockito?</p>
  
  <p>Ex </p>
  
  <pre><code>public abstract AbstractClass{
  } 
  
  //Class under test
  public class SourceClass{            
    SourceClass(AbstractClass abstractClass){}            
  }
  
  @RunWith(MockitoJUnitRunner.class
  public SourceClassTest{
   @Mock
    AbstractClass abstractClass;
  }
  </code></pre>
  
  <p>whenever I do this i get this error</p>
  
  <pre><code>java.lang.ExceptionInInitializerError
  </code></pre>
  
  <p>Ther version of mockito I am using i 1.8.5</p>