title: Mockito method returns null
body: <p>I looked in the forum but couldn't find why this would happen</p>
  
  <p>I have</p>
  
  <pre><code>public class AImpl implements A{
  
     @Autowired
     B bImpl;
  
     protected void doSomething(){
        String s = "test";
        String d = b.permuteString(s);
        System.out.println(s.substring(1));
     }
  
  }
  
  public class BImpl implements B{
      public String permuateString(s){
       return s;
     }
  }
  </code></pre>
  
  <p>In the test I have: </p>
  
  <pre><code>@InjectMocks
  AImpl aImpl;
  
  @Mock
  BImpl bImpl;
  
  @Test
  public void testCode(){
  testCode(){
     aImpl.doSomething();
  }
  }
  </code></pre>
  
  <p>The method <code>permuateString</code> from <code>BImpl</code> always returns null. I need to know the result of permuteString() in order to continue the execution of doSomething. so it can't be null</p>
  
  <p>Why is it?</p>
  
  <p>I am using <code>Mockito</code></p>