@Test
public void testHasPermission() throws Exception {

    inspectForTest(session -> {
        final JackrabbitSessionFacade facade = new JackrabbitSessionFacade(session, true);
        assertTrue("admin should have read on root",
                facade.hasPermission("/", Session.ACTION_READ));
        assertTrue("admin should have read and set_property on root",
                facade.hasPermission("/", Session.ACTION_READ, Session.ACTION_SET_PROPERTY));
    });
}