title: Mock Method of authowired bean using mockito and spring mock
body: <p>I have to impelement a test for MyService that conntain two methods method1 &amp; method2:</p>
  
  <p>and the method1 call method2 (method1 --> method2 )</p>
  
  <p>so i've somthing like this in my test class</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @SpringBootTest(classes = SpringBootApplicationTest.class)
  @ContextConfiguration(classes = { conf.class })
  public class CommonCAMServiceTest {
  
      @Autowired
      private MyService myService;
  
       test_method_1(){...}// this is what i want to implement and i have to mock the method2 call
       test_method_2(){...}//this work fine
  
  
  ... 
  </code></pre>
  
  <p>so i want to test my method1 but with the mock of method ( even my service class is autowired not mocked)</p>
  
  <p>Thanks</p>