final RuleDescr ruleDescr = new RuleDescr( "my rule" );
ruleDescr.addAnnotation( "ruleId",
"123" );
ruleDescr.addAnnotation( "author",
"Bob Doe" );
ruleDescr.addAnnotation( "text",
"\"It's a quoted\\\" string\"" );
// creates expected results
// defining expectations on the mock object
when( context.getRule() ).thenReturn( rule );