title: testcontainers - maven build fails due to test failures
body: <p>My development environment(JDK, Maven) is setup within WSL2. With this setup, there are test failures</p>
  
  <p>Below is the output of the build process.</p>
  
  <pre><code>00:18:14.261 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.sudhirt.practice.testcontainers.repository.DatabaseTests]        00:18:14.263 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.sudhirt.practice.testcontainers.repository.DatabaseTests]
  00:18:14.267 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.sudhirt.practice.testcontainers.repository.DatabaseTests]        00:18:14.268 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.sudhirt.practice.testcontainers.repository.DatabaseTests]
  00:18:14.271 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.sudhirt.practice.testcontainers.repository.DatabaseTests]
  00:18:14.272 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.sudhirt.practice.testcontainers.repository.DatabaseTests]
  00:18:14.303 [main] DEBUG org.testcontainers.utility.TestcontainersConfiguration - Testcontainers configuration overrides will be loaded from file:/home/sudhirtumati/.testcontainers.properties
  [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.155 s &lt;&lt;&lt; FAILURE! - in com.sudhirt.practice.testcontainers.repository.DatabaseTests
  [ERROR] com.sudhirt.practice.testcontainers.repository.DatabaseTests  Time elapsed: 1.151 s  &lt;&lt;&lt; ERROR!                                                                                                                  java.lang.ExceptionInInitializerError
          at com.sudhirt.practice.testcontainers.repository.DatabaseTests.&lt;clinit&gt;(DatabaseTests.java:23)
  
  [INFO]
  [INFO] Results:
  [INFO]                                                                                                                                                                                                                   [ERROR] Errors:                                                                                                                                                                                                          [ERROR]   DatabaseTests.com.sudhirt.practice.testcontainers.repository.DatabaseTests » ExceptionInInitializer                                                                                                            [INFO]                                                                                                                                                                                                                   [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0                                                                                                                                                                 [INFO]                                                                                                                                                                                                                   [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  </code></pre>
  
  <p>Line 23 of <code>DatabaseTests</code> is:</p>
  
  <pre class="lang-java prettyprint-override"><code>@ClassRule
  public static OracleContainer oracleContainer = new OracleContainer();
  </code></pre>
  
  <p>The complete source code is available on <a href="https://github.com/sudhirtumati/testcontainers" rel="nofollow noreferrer">github</a>.</p>
  
  <p>Any suggestions to fix this issue?</p>