@Override
    public DiagnosticsBuilder getDiagnosticsInfo() {
        return diagnostics()
                .withTitle("Concurrent modified jobs:")
                .with(concurrentJobModificationResolveResults, (resolveResult, diagnosticsBuilder) -> appendDiagnosticsInfo(diagnosticsBuilder, resolveResult));
    }
@Test
    void canGenerateCorrectDiagnosticsInfo() {
        final Job localJob = aSucceededJob().build();
        final Job jobFromStorage = aFailedJob().build();

        final ConcurrentJobModificationResolveResult resolveResult = ConcurrentJobModificationResolveResult.failed(localJob, jobFromStorage);
        final UnresolvableConcurrentJobModificationException unresolvableConcurrentJobModificationException = new UnresolvableConcurrentJobModificationException(singletonList(resolveResult), new Exception());

        final String markDown = unresolvableConcurrentJobModificationException.getDiagnosticsInfo().asMarkDown();
        assertThat(markDown)
                .containsPattern("SUCCEEDED (.*) ← PROCESSING (.*) ← ENQUEUED")
                .containsPattern("FAILED (.*) ← PROCESSING (.*) ← ENQUEUED");
    }