@Test
void testInheritanceRefsRemove() {

    final DocRef pipeline = new DocRef(PipelineDoc.DOCUMENT_TYPE, "1");
    final DocRef feed = new DocRef(FeedDoc.DOCUMENT_TYPE, "1");
    final List<PipelineData> baseStack = new ArrayList<>();
    final PipelineData base = new PipelineData();
    base.addElement(ELEM_TYPE, "test1");
    base.addElement(ELEM_TYPE, "test2");
    base.addPipelineReference(
            PipelineDataUtil.createReference("test1", "testProp", pipeline, feed, StreamTypeNames.EVENTS));
    base.addLink("test1", "test2");
    baseStack.add(base);
    final PipelineData override = new PipelineData();
    override.removePipelineReference(
            PipelineDataUtil.createReference("test1", "testProp", pipeline, feed, StreamTypeNames.EVENTS));
    test(baseStack, override, 0, 0, 0, 0, 0, 1, 0, 0);
}