@Override
    public int delete(String id) {
        final Optional<AuthzRoleDTO> role = get(id);
        final int delete = super.delete(id);
        if (delete > 0) {
            role.ifPresent(r -> userService.dissociateAllUsersFromRole(r.toLegacyRole()));
        }
        return delete;
    }
@Test
    void delete() {
        final String roleId = "5d41bb973086a840541a3ed2";
        final Optional<AuthzRoleDTO> role = service.get(roleId);

        assertThat(role).isPresent();

        service.delete(roleId);

        verify(userService).dissociateAllUsersFromRole(role.get().toLegacyRole());
    }