    @Test
    public void testJobsInstrumentation_SuccessResult() {

        FinishEventSource finishEventSource = new FinishEventSource();

        InstrumentedJobListener listener = new InstrumentedJobListener(metricRegistry);
        listener.onJobStarted("j1", Collections.emptyMap(), finishEventSource);
        finishEventSource.finish(JobResult.unknown(null));

        assertHasMetrics("j1", metricRegistry, 0, 1, 0, 0);
    }