title: reason: no instance(s) of type variable(s) T exist so that void conforms to using mockito
body: <p>I want to throw an Exception when running a void method</p>
  
  <pre><code>when(booking.validate(any())).thenThrow(BookingException.builder().build());
  </code></pre>
  
  <p>but I have a compilation error:</p>
  
  <pre><code>Required type: T
  Provided: void
  reason: no instance(s) of type variable(s) T exist so that void conforms to T
  </code></pre>