Document enc_doc = enc.encrypt(entry.getDocument(), options);
assertEquals(new QName("http://www.w3.org/2001/04/xmlenc#", "EncryptedData"), enc_doc.getRoot().getQName());
// Decrypt the document using the generated key
Document<Entry> entry_doc = enc.decrypt(enc_doc, options);
assertTrue(entry_doc.getRoot() instanceof Entry);
assertEquals("http://example.org/foo/entry", entry_doc.getRoot().getId().toString());