try {
String filePath = ResourceUtilities.getAbsolutePath("headerFooterHidden.odt");
File file = new File(filePath);
TextDocument tdocument = TextDocument.loadDocument(file);
Assert.assertNotNull(tdocument);
OdfMediaType odfMediaB = tdocument.getOdfMediaType();
Assert.assertEquals("application/vnd.oasis.opendocument.text", odfMediaB.getMediaTypeString());
} catch (Exception e) {
LOG.log(Level.SEVERE, e.getMessage(), e);
Assert.fail(e.getMessage());
}