public void validate(AlmSettingDto almSettingDto) {
    String gitlabUrl = almSettingDto.getUrl();
    String accessToken = almSettingDto.getDecryptedPersonalAccessToken(encryption);
    validate(ValidationMode.COMPLETE, gitlabUrl, accessToken);
  }
@Test
  public void validate_success_with_encrypted_token() {
    AlmSettingDto almSettingDto = new AlmSettingDto()
      .setUrl(GITLAB_API_URL)
      .setPersonalAccessToken(ENCRYPTED_TOKEN);

    underTest.validate(almSettingDto);

    verify(gitlabHttpClient).checkUrl(almSettingDto.getUrl());
    verify(gitlabHttpClient).checkToken(almSettingDto.getUrl(), ACCESS_TOKEN);
    verify(gitlabHttpClient).checkReadPermission(almSettingDto.getUrl(), ACCESS_TOKEN);
    verify(gitlabHttpClient).checkWritePermission(almSettingDto.getUrl(), ACCESS_TOKEN);
  }