public GroupInformation updateGroup(DbSession dbSession, GroupDto group, @Nullable String newName) {
    checkGroupIsNotDefault(dbSession, group);
    return groupDtoToGroupInformation(updateName(dbSession, group, newName), dbSession);
  }
@Test
  public void updateGroup_whenGroupNameDoesntChange_succeeds() {
    GroupDto group = mockGroupDto();
    mockDefaultGroup();

    assertThatNoException()
      .isThrownBy(() -> groupService.updateGroup(dbSession, group, group.getName()));

    verify(dbClient.groupDao(), never()).update(dbSession, group);
  }