@Test
public void testCreatePowerPointOOXMLDocument() {

    try {
        final SearchResourceContext resourceContext = new SearchResourceContext();
        resourceContext.setBusinessControlFor(olatResourcable);
        final Document powerPointDocument = FileDocumentFactory.createDocument(resourceContext, new LocalFileImpl(getTestFile("PowerPointDocument.pptx")));
        // check content
        final String content = powerPointDocument.get(AbstractOlatDocument.CONTENT_FIELD_NAME);
        assertTrue("Wrong PowerPoint (pptx) content", content.contains("Slide1"));
        assertTrue("Wrong PowerPoint (pptx) content", content.contains("ContentSlide1"));
        assertTrue("Wrong PowerPoint (pptx) content", content.contains("Oliver: CommentSlide1"));
        assertTrue("Wrong PowerPoint (pptx) content", content.contains("NoteSlide1"));
        assertTrue("Wrong PowerPoint (pptx) content", content.contains("Slide2"));
        assertTrue("Wrong PowerPoint (pptx) content", content.contains("ContentSlide2"));
        assertTrue("Wrong PowerPoint (pptx) content", content.contains("Oliver: CommentSlide2"));
        assertTrue("Wrong PowerPoint (pptx) content", content.contains("NoteSlide2"));
    } catch (final Exception e) {
        e.printStackTrace();
        fail(e.getClass().getSimpleName() + ": " + e.getMessage());
    }
}