@Test
public void shouldReplaceWithEnvVariables() {

    final String envTestTemplate = "COUNT:${GO_STAGE_COUNTER} Name:${GO_STAGE_NAME} COUNT2:${GO_STAGE_COUNTER}";
    final String replaced = goEnvironment.replaceVariables(envTestTemplate);
    assertThat(replaced, is("COUNT:1 Name:build-and-publish COUNT2:1"));
}