title: mock awaitTermination in junit
body: <p>i have a code like this</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>if (!executorService.awaitTermination(900000l,TimeUnit.MILLISECONDS)){
  executorService.shutdowNow();
  }</code></pre>
  </div>
  </div>
  </p>
  <p>what i want is to mock the return type of awaitTermination to get false to go to the condition</p>
  <p>what i did in test</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>@Mock
  ExecutorService executorService;
  
  Mockito.when(executorService.awaitTermination(anyLong(),any(TimeUnit.class)).thenReturn(false) // this line dont work it always return true when i debug it</code></pre>
  </div>
  </div>
  </p>
  <p>any idea how to mock that line to get false ?</p>