@Test
public void testOverriddenPermissions2() throws Exception {

    // deploy a new atomic permission and a new compound permission
    deployContrib(CoreUTConstants.CORE_TESTS_BUNDLE,
            "permissions-override2-contrib.xml");
    PermissionProvider pp = service.getPermissionProvider();
    // check default permissions where not affected by the override
    testDefaultPermissions();
    // test the new permissions
    String[] groups = pp.getPermissionGroups("CustomCompoundPerm");
    assertNull(groups);
    groups = pp.getPermissionGroups("CustomAtomicPerm");
    assertNotNull(groups);
    assertEquals(Arrays.asList("ReadWrite", "Write"), Arrays.asList(groups));
}