assertNotNull( rule );
final Pattern pattern = (Pattern) rule.getLhs().getChildren().get( 0 );
assertEquals( StockTick.class.getName(),
((ClassObjectType) pattern.getObjectType()).getClassType().getName() );
final Behavior window = pattern.getBehaviors().get( 0 );
assertEquals( Behavior.BehaviorType.TIME_WINDOW,
window.getType() );
assertEquals( 60000,
((SlidingTimeWindow) window).getSize() );
}