public void validate(AlmSettingDto almSettingDto) {
    String gitlabUrl = almSettingDto.getUrl();
    String accessToken = almSettingDto.getDecryptedPersonalAccessToken(encryption);
    validate(ValidationMode.COMPLETE, gitlabUrl, accessToken);
  }
@Test
  public void validate_whenCompleteMode_validatesToken() {
    underTest.validate(COMPLETE, GITLAB_API_URL, ACCESS_TOKEN);

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