@Test
public void givenRunningJobExecutionWithoutEndTime_whenGetDuration_thenReturnNull() {

    JobExecutionResult jobExecutionResult = new JobExecutionResult(1234567L, "STARTED", new Date(0), null, "1");
    assertThat(jobExecutionResult.getDuration()).isNull();
}