"rule Foo " +
"when " +
" String() @Outer( klass = String.class, klasses = { String.class, Integer.class } ) " +
"then " +
"end ";
KieHelper helper = new KieHelper();
helper.addContent( drl, ResourceType.DRL );
Pattern p = ((Pattern) (( RuleImpl ) helper.build().getRule( "org.drools.test", "Foo" )).getLhs().getChildren().get( 0 ));
AnnotationDefinition adef = p.getAnnotations().get( Outer.class.getName().replace( "$", "." ) );
assertEquals( String.class, adef.getPropertyValue( "klass" ) );
assertEquals( Arrays.asList( new Class[] { String.class, Integer.class } ),
Arrays.asList( (Class[]) adef.getPropertyValue( "klasses" ) ) );