public void lock(long lockedByPipelineId) {
        this.lockedByPipelineId = lockedByPipelineId;
        locked = true;
    }
@Test
    void shouldNotBeEqualToAnotherPipelineStateIfAllAttributesDoNotMatch() {
        PipelineState pipelineState1 = new PipelineState("p", new StageIdentifier("p", 1, "1", 1L, "s", "1"));
        PipelineState pipelineState2 = new PipelineState("p", new StageIdentifier("p", 1, "1", 1L, "s", "1"));
        pipelineState1.lock(1);
        assertThat(pipelineState2).isNotEqualTo(pipelineState1);
    }