title: How to use Testcontainers and Inject servcies in Quarkus?
body: <p>I try to migrate my Integration Test Class to use @Testcontainers.</p>
  <p>Original Test Class was like</p>
  <pre><code>@QuarkusTest
  class GameResourceTest {
  
      @Inject
      TeamService teamService;
  
      @Test
      void shouldLeadTheRankLadder() {
       teamService.doCrazyStuff();  // PASS
  </code></pre>
  <p>After rewrite it looks like this</p>
  <pre><code>@Testcontainers
  class GameResourceTest {
  
      @Container
      private MariaDBContainer mariaDBContainer = new MariaDBContainer(&quot;mariadb:10.5.16&quot;).withDatabaseName(&quot;test&quot;).withUsername(&quot;test&quot;).withPassword(&quot;test&quot;);
      
      @Inject
      TeamService teamService;
  
      @Test
      void test() {
       assertTrue(mariaDBContainer.isRunning()); // PASS
      }
  
      @Test
      void shouldLeadTheRankLadder() {
       teamService &lt;-----------------------IS NULL HERE
  </code></pre>
  <p>So after removing the @QuarkusTest annoation, dependency injection of my service not work anymore.</p>
  <p>How to use Testcontainers and Dependency Injection here?</p>