title: Difference between @Mock, @MockBean and Mockito.mock()
body: <p>When creating tests and mocking dependencies, what is the difference between these three approaches?</p>
  
  <ol>
  <li><p>@MockBean:</p>
  
  <pre><code>@MockBean
  MyService myservice;
  </code></pre></li>
  <li><p>@Mock:</p>
  
  <pre><code>@Mock
  MyService myservice;
  </code></pre></li>
  <li><p>Mockito.mock()</p>
  
  <pre><code>MyService myservice = Mockito.mock(MyService.class);
  </code></pre></li>
  </ol>