title: Unable to mock with Quarkus, NullPointer exception and cannot find relevant imports
body: <p>I am trying to write unit tests for Quarkus using Mockito, but I fail mocking things.</p>
  <p>Here is a minimal (not) working example :</p>
  <pre><code>package com.my.package;
  
  import io.quarkus.test.junit.QuarkusTest;
  import org.mockito.Mockito;
  import org.mockito.Mock;
  import org.junit.jupiter.api.Assertions;
  import org.junit.jupiter.api.Test;
  
  @QuarkusTest
  public class LoadCalculatorServiceTest {
  
      public class Foobar {
          public int baz;
          public void setBaz(int baz) {
              this.baz = baz;
          }
          public int getBaz() {
              return this.baz;
          }
      }
  
      @Mock
      Foobar foobar;
      // Foobar foobar = new Foobar(); // doesn’t work either
  
      @Test
      public void myTest() {
          Mockito.when(foobar.getBaz()).thenReturn(4); // NullPointer
          Assertions.assertEquals(4,foobar.getBaz());
      }
  }
  </code></pre>
  <p>The test crashes on a NullPointer.</p>
  <p>I read such issues may be fixed by annotating the test with <code>@RunWith(MockitoJUnitRunner.class)</code>, <code>@ExtendWith(MockitoExtension.class)</code> (which for some reason I expected <code>@QuarkusTest</code> to do anyway ?), however I fail to find the correct imports to load them.</p>
  <p>I tried <code>org.junit.jupiter.api.MockitoExtension</code>, <code>org.junit.runner.RunWith</code> and variations, without success.</p>
  <p>Here is the relevant part of my <code>pom.xml</code> :</p>
  <pre><code>    &lt;dependency&gt;
        &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
        &lt;artifactId&gt;quarkus-junit5&lt;/artifactId&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
        &lt;artifactId&gt;quarkus-junit5-mockito&lt;/artifactId&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p>What am I missing ?</p>