// Create test page & attachment
String src = "[{ALLOW edit Alice}] ";
m_engine.saveText( "Test", src );
File f = m_engine.makeAttachmentFile();
Attachment att = new Attachment( m_engine, "Test", "test1.txt" );
att.setAuthor( "FirstPost" );
m_engine.getAttachmentManager().storeAttachment( att, f );
Attachment p = (Attachment) m_engine.getPage( "Test/test1.txt" );
Permission view = PermissionFactory.getPagePermission( p, "view" );
Permission edit = PermissionFactory.getPagePermission( p, "edit" );
// Create authenticated session with user 'Alice', who can read & edit (in ACL)
WikiSession session;