public GroupInformation createGroup(DbSession dbSession, String name, @Nullable String description) {
    validateGroupName(name);
    checkNameDoesNotExist(dbSession, name);

    GroupDto group = new GroupDto()
      .setUuid(uuidFactory.create())
      .setName(name)
      .setDescription(description);
    return groupDtoToGroupInformation(dbClient.groupDao().insert(dbSession, group), dbSession);
  }
@Test
  @UseDataProvider("invalidGroupNames")
  public void createGroup_whenGroupNameIsInvalid_throws(String groupName, String errorMessage) {
    mockDefaultGroup();

    assertThatExceptionOfType(BadRequestException.class)
      .isThrownBy(() -> groupService.createGroup(dbSession, groupName, "Description"))
      .withMessage(errorMessage);

  }