METHOD_0 ( ) { java . lang . String str = "" ; str += STRING_0 ; str += STRING_1 ; str += STRING_2 ; str += STRING_3 ; str += STRING_4 ; str += STRING_5 ; org . kie . internal . builder . IDENT_0 IDENT_1 = org . kie . internal . builder . IDENT_2 . METHOD_1 ( ) ; IDENT_1 . add ( org . kie . internal . io . IDENT_3 . METHOD_2 ( str . getBytes ( ) ) , IDENT_4 . IDENT_5 ) ; final org . drools . core . impl . IDENT_6 IDENT_7 = org . drools . core . impl . IDENT_8 . METHOD_3 ( ) ; if ( IDENT_1 . METHOD_4 ( ) ) { org . junit . Assert . fail ( IDENT_1 . METHOD_5 ( ) . toString ( ) ) ; } IDENT_7 . METHOD_6 ( IDENT_1 . METHOD_7 ( ) ) ; final java . util . concurrent . atomic . IDENT_9 IDENT_10 = new java . util . concurrent . atomic . METHOD_8 ( 0 ) ; final org . kie . internal . runtime . IDENT_11 IDENT_12 = org . kie . internal . persistence . jpa . IDENT_13 . METHOD_9 ( IDENT_7 , null , IDENT_14 ) ; org . drools . persistence . IDENT_15 IDENT_16 = ( ( org . drools . persistence . IDENT_15 ) ( ( ( org . drools . core . command . impl . IDENT_17 ) ( IDENT_12 ) ) . METHOD_10 ( ) ) ) ; org . drools . persistence . jpa . IDENT_18 IDENT_19 = new org . drools . persistence . jpa . METHOD_11 ( ) ; IDENT_16 . METHOD_12 ( IDENT_19 ) ; IDENT_12 . METHOD_13 ( new org . kie . api . event . rule . METHOD_14 ( ) { public void METHOD_15 ( org . kie . api . event . rule . IDENT_20 event ) { IDENT_10 . METHOD_16 ( ) ; try { org . drools . persistence . session . IDENT_21 . IDENT_22 = new java . util . concurrent . METHOD_17 ( 1 ) ; org . drools . persistence . session . IDENT_21 . IDENT_23 . METHOD_18 ( ) ; org . drools . persistence . session . IDENT_21 . IDENT_22 . METHOD_19 ( ) ; } catch ( java . lang . IDENT_24 e ) { e . printStackTrace ( ) ; } } } ) ; final long IDENT_25 = IDENT_12 . METHOD_20 ( ) ; org . kie . internal . runtime . IDENT_11 IDENT_26 = org . kie . internal . persistence . jpa . IDENT_13 . METHOD_21 ( IDENT_25 , IDENT_7 , null , METHOD_22 ( context ) ) ; org . drools . persistence . IDENT_15 IDENT_27 = ( ( org . drools . persistence . IDENT_15 ) ( ( ( org . drools . core . command . impl . IDENT_17 ) ( IDENT_26 ) ) . METHOD_10 ( ) ) ) ; org . drools . persistence . jpa . METHOD_11 IDENT_28 = new org . drools . persistence . jpa . METHOD_11 ( ) ; IDENT_27 . METHOD_12 ( IDENT_28 ) ; java . util . concurrent . IDENT_29 executor = java . util . concurrent . IDENT_30 . METHOD_23 ( 1 ) ; executor . execute ( ( ) -> { try { IDENT_12 . insert ( 1 ) ; } catch ( e ) { org . drools . persistence . session . e . printStackTrace ( ) ; } finally { IDENT_12 . METHOD_24 ( ) ; org . drools . persistence . session . IDENT_21 . IDENT_31 = true ; org . drools . persistence . session . IDENT_21 . IDENT_23 . METHOD_18 ( ) ; } } ) ; try { while ( ! ( org . drools . persistence . session . IDENT_21 . IDENT_31 ) ) { try { org . drools . persistence . session . IDENT_21 . IDENT_23 . METHOD_19 ( ) ; } catch ( java . lang . IDENT_24 e ) { e . printStackTrace ( ) ; } org . drools . persistence . session . IDENT_21 . IDENT_23 = new java . util . concurrent . METHOD_17 ( 1 ) ; IDENT_26 . insert ( 2 ) ; org . drools . persistence . session . IDENT_21 . IDENT_22 . METHOD_18 ( ) ; } } finally { IDENT_26 . METHOD_24 ( ) ; executor . METHOD_25 ( ) ; } try { executor . METHOD_26 ( INT_0 , TimeUnit . IDENT_32 ) ; } catch ( java . lang . IDENT_24 e ) { e . printStackTrace ( ) ; } "<AssertPlaceHolder>" ; } get ( ) { return org . drools . persistence . api . IDENT_33 . INSTANCE ; }
org . junit . Assert . assertEquals ( 4 , IDENT_10 . get ( ) )