@Test
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public void testGetEnforcementJob() {

    IAgreement agreementStored = saveAgreement();        
    
    EnforcementJob expected = newEnforcementJob(agreementStored);
    try {
        enforcementJobDao.save(expected);
    } catch (Exception e) {
        e.printStackTrace();
    }
    
    IEnforcementJob actual = service.getEnforcementJob(expected.getId());
    assertTrue(equalJobs(expected, actual));
    actual = service.getEnforcementJob(-1L);
    assertNull(actual);
}