public void removeMembership(String groupMembershipUuid) {
    try (DbSession dbSession = dbClient.openSession(false)) {
      UserGroupDto userGroupDto = findMembershipOrThrow(groupMembershipUuid, dbSession);
      removeMembership(userGroupDto.getGroupUuid(), userGroupDto.getUserUuid());
    }
  }
@Test
  public void removeMembership_ifGroupAndUserFound_shouldRemoveMemberFromGroup() {
    mockAdminInGroup(GROUP_A, USER_1);
    GroupDto groupDto = mockGroupDto();
    UserDto userDto = mockUserDto();

    groupMembershipService.removeMembership(GROUP_A, USER_1);

    verify(userGroupDao).delete(dbSession, groupDto, userDto);
    verify(dbSession).commit();
  }