GoEnvironment { public String triggeredUser() { return get("GO_TRIGGER_USER"); } 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 shouldReturnTriggeredUser() { assertThat(goEnvironment.triggeredUser(), is("Krishna")); }