@Test
public void testDefaultPermissions() {

    PermissionProvider pp = service.getPermissionProvider();
    String[] groups = pp.getPermissionGroups("Read");
    assertNotNull(groups);
    assertEquals(Arrays.asList("ReadRemove", "ReadWrite"),
            Arrays.asList(groups));
    groups = pp.getPermissionGroups("ReadProperties");
    assertNotNull(groups);
    assertEquals(Arrays.asList("Read", "ReadRemove", "ReadWrite"),
            Arrays.asList(groups));
    groups = pp.getPermissionGroups("ReadChildren");
    assertNotNull(groups);
    assertEquals(Arrays.asList("Read", "ReadRemove", "ReadWrite"),
            Arrays.asList(groups));
    groups = pp.getPermissionGroups("Browse");
    assertNotNull(groups);
    assertEquals(Arrays.asList("Read", "ReadProperties", "ReadRemove",
            "ReadWrite"), Arrays.asList(groups));
}