public void validate(AlmSettingDto almSettingDto) {
    String gitlabUrl = almSettingDto.getUrl();
    String accessToken = almSettingDto.getDecryptedPersonalAccessToken(encryption);
    validate(ValidationMode.COMPLETE, gitlabUrl, accessToken);
  }
@Test
  public void validate_whenCompleteMode_validatesTokenNotNull() {
    assertThatIllegalArgumentException()
      .isThrownBy(() -> underTest.validate(COMPLETE, GITLAB_API_URL, null))
      .withMessage("Your Gitlab global configuration is incomplete. The GitLab access token must be set.");
  }