title: junit for multi threaded class with mockito
body: <p>Please, help me write a JUnit test for this code using Mockito.</p>
  
  <pre><code>class A{
      private BlockingQueue&lt;Runnable&gt; jobQueue;
  
      public void methodA(List&lt;String&gt; messages) {
          try {
              jobQueue.put(() -&gt; methodB(message));
          } catch(InterruptedException e) {}
      }
  
      private void methodB(Message message) {
          //other logic
      }
  }
  </code></pre>