public PipelineGroups getLocal() {
        PipelineGroups locals = new PipelineGroups();
        for (PipelineConfigs pipelineConfigs : this) {
            PipelineConfigs local = pipelineConfigs.getLocal();
            if (local != null)
                locals.add(local);
        }
        return locals;
    }
@Test
    public void shouldGetLocalPartsWhenOriginIsNull() {
        PipelineConfigs defaultGroup = createGroup("defaultGroup", createPipelineConfig("pipeline1", "stage1"));
        PipelineGroups groups = new PipelineGroups(defaultGroup);
        assertThat(groups.getLocal().size(), is(1));
        assertThat(groups.getLocal().get(0), is(defaultGroup));
    }