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

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

        assertNull(merge.getLocal());
    }