public void bug56076_write() throws Exception {
// test document write protection with password
XWPFDocument document = new XWPFDocument();
document.enforceCommentsProtection("Example", HashAlgorithm.sha512);
document = XWPFTestDataSamples.writeOutAndReadBack(document);
boolean isValid = document.validateProtectionPassword("Example");
assertTrue(isValid);
}
}