@Test
public void testParserForText() throws Exception {

    Parser parser = new MatParser();
    ToXMLContentHandler handler = new ToXMLContentHandler();
    Metadata metadata = new Metadata();
    String path = "/test-documents/test_mat_text.mat";
    try (InputStream stream = getResourceAsStream(path)) {
        parser.parse(stream, handler, metadata, new ParseContext());
    }
    // Check Content
    String content = handler.toString();
    assertContains("<p>double:[2x2  double array]</p>", content);
}