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_ifGroupAndUserNotFound_shouldThrow() {
    assertThatExceptionOfType(NotFoundException.class)
      .isThrownBy(() -> groupMembershipService.removeMembership(GROUP_A, USER_1))
      .withMessage("User 'user_1' not found");
  }