title: Mockito issue w.r.t spring boot upgrade
body: <p>We are facing an issue with Mockito post spring boot version upgrade</p>
  <p>Following is the configuration</p>
  <ul>
  <li>Mockito-all : 1.10.19</li>
  <li>PowerMockito : 1.6.2</li>
  <li>SpringBootVersion : 2.6.3</li>
  <li>Junit : 4.12</li>
  <li>Hamcrest-all : 1.3</li>
  </ul>
  <p>Reported exception:</p>
  <pre><code>org.mockito.exceptions.misusing.UnfinishedStubbingException: 
  Unfinished stubbing detected here:
  -&gt; at com.example.Sample(sample.java:109)
  
  E.g. thenReturn() may be missing.
  Examples of correct stubbing:
      when(mock.isOk()).thenReturn(true);
      when(mock.isOk()).thenThrow(exception);
      doThrow(exception).when(mock).someVoidMethod();
  </code></pre>
  <p>I tried changing versions of mockito from <code>1.1</code> to <code>1.10.19</code> and even with powermockito as well but it doesnt help. error keeps coming.</p>