title: Mockito - internal method call
body: <p>I have a class called <code>Availability.java</code> and have two methods. </p>
  
  <pre><code> public Long getStockLevelStage() {
       //some logic
        getStockLevelLimit();
      }
  
      public Long getStockLevelLimit() {
        String primaryOnlineArea = classificationFeatureHelper.getFirstFeatureName(productModel, FEATURE_CODE_PRODUCT_ONLINE_AREA_PRIMARY, language);
  ................
        return new Long();
      }
  </code></pre>
  
  <p>I'm writing a unit test class <code>AvailabilityTest.java</code>.</p>
  
  <pre><code>@RunWith(MockitoJUnitRunner.class)
  public class AvailabilityTest {
    @InjectMocks
    private Availability availability = new Availability();
  
    @Test
    public void testGetStockLevelStage() {
      availability.getStockLevelStage();
    }
  }
  </code></pre>
  
  <p>When I call <code>availability.getStockLevelStage()</code> method, it calls <code>getStockLevelLimit()</code> method. Is it possible to mock the internal method call?</p>
  
  <p>In this case, I don't want <code>getStockLevelLimit()</code> to be executed, when <code>getStockLevelStage()</code> gets executes.</p>
  
  <p>Please help.</p>