Testing if blocks with Mockito : <p>I have void function that does not return return anything with a if block inside. Is there a way while unit testing to verify if the "if" block is touched? </p>

<p>for example to test the "if" inside the following funtion: </p>

<pre><code>public void doSomething(){
    if(someCondition){
        int foo = doThis();
    }
    // ---- 
    // remaining code
} 

private int doThis(){
    return 100;
}
</code></pre>
