public Set<String> userSelfEditPermissions(String username) {
        ImmutableSet.Builder<String> perms = ImmutableSet.builder();
        perms.add(perInstance(RestPermissions.USERS_EDIT, username));
        perms.add(perInstance(RestPermissions.USERS_PASSWORDCHANGE, username));
        perms.add(perInstance(RestPermissions.USERS_TOKENLIST, username));
        perms.add(perInstance(RestPermissions.USERS_TOKENCREATE, username));
        perms.add(perInstance(RestPermissions.USERS_TOKENREMOVE, username));
        return perms.build();
    }
@Test
    public void testUserSelfEditPermissions() throws Exception {
        assertThat(permissions.userSelfEditPermissions("john"))
                .containsExactly("users:edit:john", "users:passwordchange:john", "users:tokenlist:john",
                        "users:tokencreate:john", "users:tokenremove:john");
    }