JenkinsConnector { String getFactoryId() throws ServerException { Optional<String> propertyPrefixOptional = getJenkinsConnectorPropertyPrefix(); if (propertyPrefixOptional.isPresent()) { Map<String, String> properties = configurationProperties.getProperties(JENKINS_CONNECTOR_PREFIX_PATTERN); return properties.get(propertyPrefixOptional.get() + JENKINS_CONNECTOR_FACTORY_ID_SUFFIX); } else { throw new ServerException(String.format(PROPERTY_NOT_FOUND_ERROR_MESSAGE, url, jobName)); } } @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 shouldGetRelatedFactoryIdFromProperties() throws Exception { String factoryId = jenkinsConnector.getFactoryId(); assertEquals(factoryId, "factoryId"); }