title: Why is 'boolean com.sun.mail.util.PropUtil.getBooleanSessionProperty(javax.mail.Session, java.lang.String, boolean)' not found?
body: <p>I'd like to write some tests for particuar classes. Yet, I want to read in an EML file. this works fine by using</p>
  <pre><code>IOUtils.toString(r.getInputStream(), StandardCharsets.UTF_8);
  </code></pre>
  <p>I habe a class which is (normally) able to read such an EML (by InputStream, filename or file content(String)) what is done so far in multiple places in the project. When I try to do this here in the test class I get this:</p>
  <pre><code>java.lang.NoSuchMethodError: 'boolean com.sun.mail.util.PropUtil.getBooleanSessionProperty(javax.mail.Session, java.lang.String, boolean)'
  
      at javax.mail.internet.MimeMessage.initStrict(MimeMessage.java:320)
      at javax.mail.internet.MimeMessage.&lt;init&gt;(MimeMessage.java:215)
      at d.d.a.c.e.EmlFileHolder.buildByEmlFile(EmlFileHolder.java:103)
      at d.d.a.c.e.EmlFileHolder.buildByEmlFileStream(EmlFileHolder.java:99)
      at d.d.a.c.e.EmlFileHolder.buildByEmlFileString(EmlFileHolder.java:81)
  </code></pre>
  <p>Maybe a problem with the dependencies? (But I couldn't solve or even find out the problem.) Here, the imported dependencies related to mail, MimeMessages, ...</p>
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;jakarta.mail&lt;/groupId&gt;
      &lt;artifactId&gt;jakarta.mail-api&lt;/artifactId&gt;
      &lt;version&gt;2.0.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.mail&lt;/groupId&gt;
      &lt;artifactId&gt;jakarta.mail&lt;/artifactId&gt;
      &lt;version&gt;2.0.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.simplejavamail&lt;/groupId&gt;
      &lt;artifactId&gt;simple-java-mail&lt;/artifactId&gt;
      &lt;version&gt;${simple-java-mail.version}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.simplejavamail&lt;/groupId&gt;
      &lt;artifactId&gt;smime-module&lt;/artifactId&gt;
      &lt;version&gt;${simple-java-mail.version}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>