@Test
  public void should_map_start_date_on_entity() throws Exception {
    JobFormEntity formEntity = formFactory.givenNewJobFormEntity();
    JobForm form = formFactory.givenJobFormWithValues();

    mapperUnderTest.mapFormOnEntity(form, formEntity);

    JobSimpleTriggerEntity simpleTrigger = formEntity.getSimpleTrigger();
    assertThat(simpleTrigger.getStartType(), is(2));
    assertThat(simpleTrigger.getStartDate(), is(formFactory.provideStartDateSrc()));
  }
  @Test
  public void should_map_on_entity() throws Exception {
    JobFormEntity formEntity = formFactory.givenNewJobFormEntity();
    JobForm form =
        formFactory
            .givenJobFormBuilderWithValues()
            .withStartDate(null) // immediate start type
            .build();

    mapperUnderTest.mapFormOnEntity(form, formEntity);

    JobSimpleTriggerEntity simpleTrigger = formEntity.getSimpleTrigger();
    assertThat(simpleTrigger.getOccurrenceCount(), is(1));
    assertThat(simpleTrigger.getRecurrenceInterval(), is(1));
    assertThat(simpleTrigger.getRecurrenceIntervalUnit(), is("DAY"));
    assertThat(simpleTrigger.getTimezone(), is(formFactory.provideTimeZone().getID()));
    assertThat(simpleTrigger.getStartType(), is(1));
  }