@Override
    public void close() {
        if (!isVersionCommitted) {
            job.setVersion(initialJobVersion);
        }
    }
@Test
    void testJobVersionerOnRollbackVersionIsRestored() {
        // GIVEN
        Job job = aScheduledJob().withVersion(5).build();

        // WHEN
        JobVersioner jobVersioner = new JobVersioner(job);

        // THEN
        assertThat(job).hasVersion(6);

        // WHEN
        jobVersioner.close();

        // THEN
        assertThat(job).hasVersion(5);
    }