@Test
public void givenStartAndEndTime_whenGetDuration_thenCalculateDurationAsDifference() {

    JobExecutionResult jobExecutionResult = new JobExecutionResult(1234567L, "COMPLETED", new Date(0), new Date(1000), "1");
    assertThat(jobExecutionResult.getDuration()).isEqualTo(1000);
}