public void lock(long lockedByPipelineId) {
        this.lockedByPipelineId = lockedByPipelineId;
        locked = true;
    }
@Test
    void shouldBeEqualToAnotherPipelineStateIfBothDoNotHaveLockedBy() {
        PipelineState pipelineState1 = new PipelineState("p");
        PipelineState pipelineState2 = new PipelineState("p");
        pipelineState1.lock(1);
        pipelineState2.lock(1);
        assertThat(pipelineState2).isEqualTo(pipelineState1);
    }