@Test
public void thatCanPersistJobInfoWithTriggerToFileAndDelete() throws IOException {

    Job job = givenAJobWithTrigger(mCallbackFlag);
    String pathFile = getPathToFileResource();
    File fileJobInfo = new File(pathFile);
    File fileToVerify = new File(pathFile, job.info().mIdentity + ".job");
    job.info().writeToFile(fileJobInfo);
    job.info().tryDelete(fileJobInfo);
    assertThat(fileJobInfo.isDirectory()).isTrue();
    assertThat(fileToVerify.exists()).isFalse();
}