GoEnvironment { public String artifactsLocationTemplate() { String pipeline = get("GO_PIPELINE_NAME"); String stageName = get("GO_STAGE_NAME"); String jobName = get("GO_JOB_NAME"); String pipelineCounter = get("GO_PIPELINE_COUNTER"); String stageCounter = get("GO_STAGE_COUNTER"); return artifactsLocationTemplate(pipeline, stageName, jobName, pipelineCounter, stageCounter); } GoEnvironment();  GoEnvironment(Map<String, String> defaultEnvironment); GoEnvironment putAll(Map<String, String> existing); Map<String,String> asMap(); String get(String name); String getOrElse(String name, String defaultValue); boolean has(String name); boolean isAbsent(String name); String traceBackUrl(); String triggeredUser(); String replaceVariables(String str); String artifactsLocationTemplate(); String artifactsLocationTemplate(String pipeline, String stageName, String jobName, String pipelineCounter, String stageCounter); boolean hasAWSUseIamRole();  }
@Test public void shouldGenerateArtifactLocationTemplate() { assertThat(goEnvironment.artifactsLocationTemplate(), is("s3-publish-test/build-and-publish/publish/20.1")); }