@Override
    public PipelineConfigs getLocal() {
        for (PipelineConfigs part : this.parts) {
            if (part.isLocal())
                return part;
        }
        return null;
    }
@Test
    public void shouldReturnFilePartForGetLocalWhenHasRemoteAndFilePart() {
        BasicPipelineConfigs filePart = new BasicPipelineConfigs();
        filePart.setOrigin(new FileConfigOrigin());

        BasicPipelineConfigs secondPart = new BasicPipelineConfigs();
        secondPart.setOrigin(new RepoConfigOrigin());
        MergePipelineConfigs merge = new MergePipelineConfigs(filePart, secondPart);

        assertThat(merge.getLocal(), Matchers.is(filePart));
    }