assertEquals( "org.drools",
pkg.getName() );
assertEquals( 1,
pkg.getWindowDeclarations().size() );
WindowDeclarationDescr wdd = pkg.getWindowDeclarations().iterator().next();
assertEquals( "Ticks",
wdd.getName() );
assertEquals( 1,
wdd.getAnnotations().size() );
assertEquals( "\"last 10 stock ticks\"",
wdd.getAnnotation( "doc" ).getValue() );
PatternDescr pd = wdd.getPattern();
assertNotNull( pd );
assertEquals( "$s",
pd.getIdentifier() );
assertEquals( "StockTick",
pd.getObjectType() );