@Test
public void testEnforce() {

    Date now = new Date();
    Date since = new Date(now.getTime() - 10000);
    
    agreementEnforcement.enforce(agreement, since, false);
    
    IAgreement a = agreementDao.getByAgreementId(agreement.getAgreementId());
    assertEquals(agreement.getGuaranteeTerms().get(0).getStatus(), a.getGuaranteeTerms().get(0).getStatus());
}