JenkinsConnector { public JenkinsConnector updateUrlWithCredentials() throws ServerException { Optional<String> propertyPrefixOptional = getJenkinsConnectorPropertyPrefix(); if (propertyPrefixOptional.isPresent()) { Map<String, String> properties = configurationProperties.getProperties(JENKINS_CONNECTOR_PREFIX_PATTERN); this.url = properties.get(propertyPrefixOptional.get() + JENKINS_CONNECTOR_URL_SUFFIX); } else { throw new ServerException(String.format(PROPERTY_NOT_FOUND_ERROR_MESSAGE, url, jobName)); } return this; } @Inject  JenkinsConnector(
      @Assisted("url") String url,
      @Assisted("jobName") String jobName,
      ConfigurationProperties configurationProperties); JenkinsConnector updateUrlWithCredentials(); void addHeadFactoryLink(String factoryUrl); void addFailedBuildFactoryLink(String factoryUrl); String getCommitId(int buildId);  }
@Test public void shouldUpdateConnectorWithUrlWithCredentialsFromProperties() throws Exception { JenkinsConnector jenkinsConnector = this.jenkinsConnector.updateUrlWithCredentials(); assertEquals(jenkinsConnector.url, "http: }