// creates input object
final RuleDescr ruleDescr = new RuleDescr( "my rule" );
ruleDescr.addAttribute( new AttributeDescr( "duration",
"( 1h30m )" ) );
ruleDescr.addAttribute( new AttributeDescr( "calendars",
"[\"cal1\", \"cal2\"]" ) );
// defining expectations on the mock object
when( context.getRule() ).thenReturn( rule );
when( context.getRuleDescr() ).thenReturn( ruleDescr );