METHOD_0 ( ) { org . drools . IDENT_0 . domain . Result result = new org . drools . IDENT_0 . domain . Result ( ) ; org . drools . model . IDENT_1 < org . drools . IDENT_0 . domain . Person > IDENT_2 = org . drools . model . IDENT_3 . METHOD_1 ( org . drools . IDENT_0 . domain . Person . class ) ; org . drools . model . IDENT_1 < org . drools . IDENT_0 . domain . Person > IDENT_4 = org . drools . model . IDENT_3 . METHOD_1 ( org . drools . IDENT_0 . domain . Person . class ) ; org . drools . model . IDENT_1 < java . lang . String > IDENT_5 = org . drools . model . IDENT_3 . METHOD_1 ( java . lang . String . class ) ; org . drools . model . IDENT_6 rule = org . drools . model . IDENT_3 . rule ( STRING_0 ) . build ( org . drools . model . IDENT_3 . METHOD_2 ( org . drools . model . IDENT_3 . pattern ( IDENT_2 ) . expr ( STRING_1 , ( p ) -> p . getName ( ) . equals ( STRING_2 ) ) , org . drools . model . IDENT_3 . and ( org . drools . model . IDENT_3 . pattern ( IDENT_4 ) . expr ( STRING_1 , ( p ) -> p . getName ( ) . equals ( STRING_2 ) ) , org . drools . model . IDENT_3 . pattern ( IDENT_2 ) . expr ( STRING_3 , IDENT_4 , ( IDENT_7 , IDENT_8 ) -> ( IDENT_7 . METHOD_3 ( ) ) > ( IDENT_8 . METHOD_3 ( ) ) ) ) ) , org . drools . model . IDENT_3 . pattern ( IDENT_5 ) . expr ( STRING_4 , IDENT_2 , ( s , p ) -> s . equals ( p . getName ( ) ) ) , org . drools . model . IDENT_3 . METHOD_4 ( IDENT_5 ) . execute ( result :: setValue ) ) ; org . drools . model . IDENT_9 model = new org . drools . model . impl . METHOD_5 ( ) . METHOD_6 ( rule ) ; org . kie . api . IDENT_10 IDENT_11 = org . drools . IDENT_0 . builder . IDENT_12 . METHOD_7 ( model ) ; org . kie . api . runtime . IDENT_13 IDENT_14 = IDENT_11 . METHOD_8 ( ) ; IDENT_14 . insert ( STRING_5 ) ; IDENT_14 . insert ( new org . drools . IDENT_0 . domain . Person ( STRING_2 , INT_0 ) ) ; IDENT_14 . insert ( new org . drools . IDENT_0 . domain . Person ( STRING_6 , INT_1 ) ) ; IDENT_14 . insert ( new org . drools . IDENT_0 . domain . Person ( STRING_5 , INT_2 ) ) ; IDENT_14 . METHOD_9 ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( STRING_5 , result . getValue ( ) )