public String getAllErrorMessages() {
        return new AllConfigErrors(cruiseConfig.getAllErrors()).asString();
    }
@Test
    public void shouldReturnAllErrorMessagesOnCruiseConfig(){
        BasicCruiseConfig cruiseConfig = GoConfigMother.defaultCruiseConfig();
        cruiseConfig.addError("BasicCruiseConfig_key", "BasicCruiseConfig_error");
        PipelineConfig pipelineConfig = PipelineConfigMother.pipelineConfig("");
        pipelineConfig.addError("PipelineConfig_key", "PipelineConfig_error");
        cruiseConfig.addPipeline("default", pipelineConfig);

        GoConfigInvalidException exception = new GoConfigInvalidException(cruiseConfig, "");
        assertThat(exception.getAllErrorMessages(), is("BasicCruiseConfig_error, PipelineConfig_error"));
    }