@Override
    public void setConfigAttributes(Object attributes) {
        setConfigAttributes(attributes, null);
    }
@Test
    public void shouldAssignApprovalTypeOnFirstStageAsManual() {
        Map<String, Object> approvalAttributes = Map.of(Approval.TYPE, Approval.MANUAL);
        Map<String, Map<String, Object>> map = Map.of(StageConfig.APPROVAL, approvalAttributes);
        PipelineConfig pipelineConfig = PipelineConfigMother.createPipelineConfig("p1", "s1", "j1");
        pipelineConfig.get(0).updateApproval(Approval.manualApproval());

        pipelineConfig.setConfigAttributes(map);

        assertThat(pipelineConfig.get(0).getApproval().getType(), is(Approval.MANUAL));
    }