@Test
public void testCanEditBooleanAuth3() throws Exception
{

    // Test Inheritance of permissions for owning collection
    new NonStrictExpectations(authorizeService.getClass())
    {{
        // Disallow Item WRITE perms
        authorizeService.authorizeActionBoolean((Context) any, (Item) any,
                Constants.WRITE); result = false;
        // Allow parent Collection WRITE perms
        authorizeService.authorizeAction((Context) any, (Collection) any,
                Constants.WRITE, false); result = null;
    }};
    // Create a new Collection and assign it as the owner
    context.turnOffAuthorisationSystem();
    Collection c = createCollection();
    it.setOwningCollection(c);
    context.restoreAuthSystemState();
    // Ensure person with WRITE perms on the Collection can edit item
    assertTrue("testCanEditBooleanAuth3 0", itemService.canEdit(context, it));
}