    @Test
    public void testExtractDataBase64PEMFormat() throws IOException, SOAPException {

        // xml elements in a single row, but base64binary part on different rows (PEM format)
        XRoadMessage message1 = EXTRACTOR.extractData(new SaajSoapMessage(getMessageFromString("extractor/EarestFail1.xml")));
        assertEquals(RESULT_PEM_FORMAT, message1.getContent().toString());

        // manually formated file with whitespaces between elements without new row (base64binary in PEM format)
        XRoadMessage message2 = EXTRACTOR.extractData(new SaajSoapMessage(getMessageFromString("extractor/EarestFail2.xml")));
        assertEquals(RESULT_PEM_FORMAT, message2.getContent().toString());

        // menually formated file without whitespaces between elements and without new row (base64binary in PEM format)
        XRoadMessage message3 = EXTRACTOR.extractData(new SaajSoapMessage(getMessageFromString("extractor/EarestFail3.xml")));
        assertEquals(RESULT_PEM_FORMAT, message3.getContent().toString());

        // menually formated file with whitespaces between elements and without new row (base64binary in PEM format)
        XRoadMessage message5 = EXTRACTOR.extractData(new SaajSoapMessage(getMessageFromString("extractor/EarestFail5.xml")));
        assertEquals(RESULT_PEM_FORMAT, message5.getContent().toString());
    }