public boolean isAssociatedWithEnvironment(String environmentName) {
        return this.environmentName != null && this.environmentName.equals(environmentName);
    }
@Test
    public void shouldUnderstandWhenAssociatedWithGivenEnvironment() {
        EnvironmentPipelineModel foo = new EnvironmentPipelineModel("foo", "env");
        assertThat(foo.isAssociatedWithEnvironment("env"), is(true));
        assertThat(foo.isAssociatedWithEnvironment("env2"), is(false));
        assertThat(foo.isAssociatedWithEnvironment(null), is(false));
        foo = new EnvironmentPipelineModel("foo");
        assertThat(foo.isAssociatedWithEnvironment("env"), is(false));
        assertThat(foo.isAssociatedWithEnvironment("env2"), is(false));
        assertThat(foo.isAssociatedWithEnvironment(null), is(false));
    }