public void copyStages(PipelineConfig pipeline) {
        if (pipeline != null) {
            addAll(pipeline);
        }
    }
@Test
    public void copyStagesShouldNotThrowExceptionIfInputPipelineConfigIsNull() {
        PipelineTemplateConfig template = PipelineTemplateConfigMother.createTemplateWithParams("template-name", "foo", "bar", "baz");
        int sizeBeforeCopy = template.size();
        template.copyStages(null);
        assertThat(template.size(), is(sizeBeforeCopy));
    }