// Path: src/test/java/de/gessnerfl/fakesmtp/TestResourceUtil.java
// public class TestResourceUtil {
//     private static final String TEST_DATA_FOLDER = "/test-data/";
// 
//     public static String getTestFileContent(String testFilename) throws IOException {
//         return IOUtils.toString(getTestFile(testFilename), StandardCharsets.UTF_8);
//     }
// 
//     public static byte[] getTestFileContentBytes(String testFilename) throws IOException {
//         return IOUtils.toByteArray(getTestFile(testFilename));
//     }
// 
//     public static InputStream getTestFile(String filename) {
//         var stream = TestResourceUtil.class.getResourceAsStream(TEST_DATA_FOLDER + filename);
//         if (stream == null) {
//             stream = TestResourceUtil.class.getClassLoader().getResourceAsStream(TEST_DATA_FOLDER + filename);
//         }
//         assertNotNull(stream);
//         return stream;
//     }
// }


import de.gessnerfl.fakesmtp.TestResourceUtil;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import javax.mail.internet.MimeMessage;
package de.gessnerfl.fakesmtp.server.impl;



class RawDataTest {

    @Test
    void shouldReturnMimeMessage() throws Exception {
// Path: src/test/java/de/gessnerfl/fakesmtp/TestResourceUtil.java
// public class TestResourceUtil {
//     private static final String TEST_DATA_FOLDER = "/test-data/";
// 
//     public static String getTestFileContent(String testFilename) throws IOException {
//         return IOUtils.toString(getTestFile(testFilename), StandardCharsets.UTF_8);
//     }
// 
//     public static byte[] getTestFileContentBytes(String testFilename) throws IOException {
//         return IOUtils.toByteArray(getTestFile(testFilename));
//     }
// 
//     public static InputStream getTestFile(String filename) {
//         var stream = TestResourceUtil.class.getResourceAsStream(TEST_DATA_FOLDER + filename);
//         if (stream == null) {
//             stream = TestResourceUtil.class.getClassLoader().getResourceAsStream(TEST_DATA_FOLDER + filename);
//         }
//         assertNotNull(stream);
//         return stream;
//     }
// }


// Path: src/test/java/de/gessnerfl/fakesmtp/server/impl/RawDataTest.java
import de.gessnerfl.fakesmtp.TestResourceUtil;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import javax.mail.internet.MimeMessage;

package de.gessnerfl.fakesmtp.server.impl;



class RawDataTest {

    @Test
    void shouldReturnMimeMessage() throws Exception {
        RawData sut = new RawData("from", "to", TestResourceUtil.getTestFileContentBytes(("mail-with-subject.eml")));