"10-Jul-2040" ) );
// creates expected results
final Calendar effective = Calendar.getInstance();
effective.setTime( DateUtils.parseDate( "10-Jul-1974",
new DateFormatsImpl() ) );
final Calendar expires = Calendar.getInstance();
expires.setTime( DateUtils.parseDate( "10-Jul-2040",
new DateFormatsImpl() ) );
// defining expectations on the mock object
when( context.getRule() ).thenReturn( rule );
when( context.getRuleDescr() ).thenReturn( ruleDescr );
when( context.getPackageBuilder() ).thenReturn( new PackageBuilder() );