title: Write jUnit test case for if else block
body: <p>I have a method with a simple if/else block. In both if and else block a private method is called. </p>
  
  <p>Below is the method for which I want to write unit test case.</p>
  
  <pre><code>public void enableBLEScan() {
          if (&lt;some boolean expression which can be mocked&gt;) {
              initializeScan();
          } else {
              stopScan();
          }
      }
  </code></pre>
  
  <p>I can easily stub the behaviour of boolean expression.</p>
  
  <p>But I want to check method invocation inside if else block takes place correctly. How could I do that?</p>