@Test
public void testDefaultVisiblePermission() throws Exception {

    PermissionProvider pp = service.getPermissionProvider();
    List<UserVisiblePermission> orderedVisiblePermissions = pp.getUserVisiblePermissionDescriptors();
    assertNotNull(orderedVisiblePermissions);
    assertEquals(
            Arrays.asList("Read", "ReadWrite", "ReadRemove", "Everything"),
            permStrings(orderedVisiblePermissions));
    orderedVisiblePermissions = pp.getUserVisiblePermissionDescriptors("Section");
    assertNotNull(orderedVisiblePermissions);
    assertEquals(
            Arrays.asList("Read", "ReadWrite", "ReadRemove", "Everything"),
            permStrings(orderedVisiblePermissions));
    orderedVisiblePermissions = pp.getUserVisiblePermissionDescriptors("Workspace");
    assertNotNull(orderedVisiblePermissions);
    assertEquals(
            Arrays.asList("Read", "ReadWrite", "ReadRemove", "Everything"),
            permStrings(orderedVisiblePermissions));
}