@Test
public void testOverridedVisiblePermission3() throws Exception {

    deployContrib(CoreUTConstants.CORE_TESTS_BUNDLE,
            "permissions-override3-contrib.xml");
    PermissionProvider pp = service.getPermissionProvider();
    List<UserVisiblePermission> orderedVisiblePermissions = pp.getUserVisiblePermissionDescriptors();
    assertNotNull(orderedVisiblePermissions);
    assertEquals(Arrays.asList("Write", "Read", "ReadRemove",
            "Everything"), permStrings(orderedVisiblePermissions));
    // custom settings for the Section type
    orderedVisiblePermissions = pp.getUserVisiblePermissionDescriptors("Section");
    assertNotNull(orderedVisiblePermissions);
    assertEquals(
            Arrays.asList("Write", "ReadRemove", "Everything", "Read"),
            permStrings(orderedVisiblePermissions));
    // Workspace falls back to default thus is overridden too
    orderedVisiblePermissions = pp.getUserVisiblePermissionDescriptors("Workspace");
    assertNotNull(orderedVisiblePermissions);
    assertEquals(Arrays.asList("Write", "Read", "ReadRemove",
            "Everything"), permStrings(orderedVisiblePermissions));
}