when( context.getRule() ).thenReturn( rule );
when( context.getRuleDescr() ).thenReturn( ruleDescr );
when( context.getPackageBuilder() ).thenReturn( new PackageBuilder() );
// calling the build method
RuleBuilder builder = new RuleBuilder();
builder.buildMetaAttributes( context );
// check expectations
verify( rule ).addMetaAttribute( "ruleId",
123 );
verify( rule ).addMetaAttribute( "author",