METHOD_0 ( ) { java . lang . String IDENT_0 = ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . IDENT_3 ) + STRING_0 ; org . kie . server . services . impl . storage . IDENT_4 state = repo . load ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . IDENT_3 ) ; org . kie . server . controller . api . model . spec . IDENT_5 template = org . kie . server . controller . IDENT_1 . storage . IDENT_6 . METHOD_1 ( state ) ; template . setId ( IDENT_0 ) ; template . setName ( IDENT_0 ) ; template . METHOD_2 ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . IDENT_3 ) . METHOD_3 ( IDENT_0 ) ; template . METHOD_2 ( IDENT_0 ) . METHOD_4 ( IDENT_0 ) ; template . METHOD_2 ( IDENT_0 ) . METHOD_5 ( IDENT_0 ) ; template . METHOD_6 ( ) . stream ( ) . METHOD_7 ( ( IDENT_7 ) -> { IDENT_7 . setId ( IDENT_0 ) ; IDENT_7 . METHOD_8 ( IDENT_0 ) ; IDENT_7 . METHOD_9 ( new org . kie . server . controller . api . model . spec . METHOD_10 ( IDENT_0 , IDENT_0 ) ) ; } ) ; repo . create ( org . kie . server . controller . IDENT_1 . storage . IDENT_6 . METHOD_11 ( template ) ) ; state = repo . load ( IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( org . kie . server . controller . api . model . spec . IDENT_5 , org . kie . server . services . impl . storage . IDENT_4 ) { boolean result = true ; java . lang . String id = null ; java . lang . String IDENT_8 = null ; java . util . Optional < java . lang . String > IDENT_9 = java . util . Optional . empty ( ) ; try { id = state . METHOD_13 ( ) . METHOD_14 ( IDENT_10 . IDENT_11 ) ; IDENT_8 = state . METHOD_13 ( ) . METHOD_14 ( IDENT_10 . IDENT_12 ) ; IDENT_9 = org . kie . server . controller . IDENT_1 . storage . IDENT_6 . METHOD_15 ( state ) ; if ( ! ( template . getId ( ) . equals ( id ) ) ) { org . junit . Assert . fail ( STRING_1 6 ) ; } if ( ! ( template . getName ( ) . equals ( id ) ) ) { org . junit . Assert . fail ( STRING_2 ) ; } if ( IDENT_9 . METHOD_16 ( ) ) { if ( ( template . METHOD_17 ( ) . size ( ) ) != 1 ) { org . junit . Assert . fail ( ( ( STRING_3 + ( template . METHOD_17 ( ) . size ( ) ) ) + STRING_4 6 ) ) ; } if ( ! ( template . METHOD_18 ( id ) ) ) { org . junit . Assert . fail ( STRING_5 ) ; } if ( ! ( template . METHOD_19 ( IDENT_9 . get ( ) ) ) ) { org . junit . Assert . fail ( STRING_6 ) ; } if ( ! ( template . METHOD_2 ( id ) . METHOD_20 ( ) . equals ( id ) ) ) { org . junit . Assert . fail ( STRING_7 ) ; } if ( ! ( template . METHOD_2 ( id ) . METHOD_21 ( ) . equals ( id ) ) ) { org . junit . Assert . fail ( STRING_4 1 ) ; } if ( ! ( template . METHOD_2 ( id ) . METHOD_22 ( ) . equals ( IDENT_9 . get ( ) ) ) ) { org . junit . Assert . fail ( STRING_1 0 ) ; } } else { if ( ( template . METHOD_17 ( ) . size ( ) ) != 0 ) { org . junit . Assert . fail ( STRING_1 5 ) ; } } if ( ( ( template . METHOD_23 ( ) ) == null ) || ( ! ( template . METHOD_23 ( ) . equals ( org . kie . server . api . model . IDENT_13 . valueOf ( IDENT_8 ) ) ) ) ) { org . junit . Assert . fail ( STRING_4 4 ) ; } for ( org . kie . server . controller . api . model . spec . IDENT_14 IDENT_7 : template . METHOD_6 ( ) ) { java . lang . String IDENT_15 = IDENT_7 . getId ( ) ; java . lang . String IDENT_16 = IDENT_7 . METHOD_24 ( ) ; org . kie . server . api . model . IDENT_17 IDENT_18 = IDENT_7 . METHOD_25 ( ) ; org . kie . server . api . model . IDENT_19 status = IDENT_7 . getStatus ( ) ; org . kie . server . api . model . IDENT_20 IDENT_21 = null ; if ( ! ( IDENT_7 . METHOD_26 ( ) . getId ( ) . equals ( id ) ) ) { org . junit . Assert . fail ( STRING_1 3 ) ; } if ( ! ( IDENT_7 . METHOD_26 ( ) . getName ( ) . equals ( id ) ) ) { org . junit . Assert . fail ( STRING_8 ) ; } for ( org . kie . server . api . model . IDENT_20 IDENT_22 : state . METHOD_27 ( ) ) { if ( IDENT_22 . METHOD_28 ( ) . equals ( IDENT_18 ) ) { IDENT_21 = IDENT_22 ; break ; } } if ( IDENT_21 == null ) { org . junit . Assert . fail ( ( ( STRING_4 + IDENT_15 ) + STRING_4 3 ) ) ; } if ( ! ( IDENT_21 . METHOD_29 ( ) . equals ( IDENT_15 ) ) ) { org . junit . Assert . fail ( STRING_4 2 ) ; } if ( ! ( IDENT_21 . METHOD_30 ( ) . equals ( IDENT_16 ) ) ) { org . junit . Assert . fail ( STRING_4 5 ) ; } if ( ! ( IDENT_21 . METHOD_28 ( ) . equals ( IDENT_18 ) ) ) { org . junit . Assert . fail ( STRING_9 ) ; } if ( ! ( IDENT_21 . getStatus ( ) . equals ( status ) ) ) { org . junit . Assert . fail ( STRING_1 9 ) ; } java . util . List < org . kie . server . api . model . IDENT_23 > IDENT_24 = IDENT_21 . METHOD_31 ( ) ; for ( org . kie . server . controller . api . model . spec . IDENT_25 IDENT_26 : IDENT_7 . METHOD_32 ( ) . values ( ) ) { if ( IDENT_26 instanceof org . kie . server . controller . api . model . spec . IDENT_27 ) { org . kie . server . controller . api . model . spec . IDENT_27 IDENT_28 = ( ( org . kie . server . controller . api . model . spec . IDENT_27 ) ( IDENT_26 ) ) ; if ( ( ( ( IDENT_28 . METHOD_33 ( ) ) != null ) && ( ! ( IDENT_28 . METHOD_33 ( ) . equals ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . METHOD_14 ( IDENT_10 . IDENT_29 , IDENT_24 ) ) ) ) ) && ( ! ( IDENT_10 . IDENT_30 . equals ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . METHOD_34 ( IDENT_10 . IDENT_29 , IDENT_24 ) . getType ( ) ) ) ) ) { org . junit . Assert . fail ( STRING_1 ) ; } if ( ( ( ( IDENT_28 . METHOD_35 ( ) ) != null ) && ( ! ( IDENT_28 . METHOD_35 ( ) . equals ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . METHOD_14 ( IDENT_10 . IDENT_31 , IDENT_24 ) ) ) ) ) && ( ! ( IDENT_10 . IDENT_30 . equals ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . METHOD_34 ( IDENT_10 . IDENT_31 , IDENT_24 ) . getType ( ) ) ) ) ) { org . junit . Assert . fail ( STRING_1 1 ) ; } if ( ( ( ( IDENT_28 . METHOD_36 ( ) ) != null ) && ( ! ( IDENT_28 . METHOD_36 ( ) . equals ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . METHOD_14 ( IDENT_10 . IDENT_32 , IDENT_24 ) ) ) ) ) && ( ! ( IDENT_10 . IDENT_30 . equals ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . METHOD_34 ( IDENT_10 . IDENT_32 , IDENT_24 ) . getType ( ) ) ) ) ) { org . junit . Assert . fail ( STRING_1 4 ) ; } if ( ( ( ( IDENT_28 . METHOD_37 ( ) ) != null ) && ( ! ( IDENT_28 . METHOD_37 ( ) . equals ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . METHOD_14 ( IDENT_10 . IDENT_33 , IDENT_24 ) ) ) ) ) && ( ! ( IDENT_10 . IDENT_30 . equals ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . METHOD_34 ( IDENT_10 . IDENT_33 , IDENT_24 ) . getType ( ) ) ) ) ) { org . junit . Assert . fail ( STRING_10 ) ; } } else if ( IDENT_26 instanceof org . kie . server . controller . api . model . spec . IDENT_34 ) { org . kie . server . controller . api . model . spec . IDENT_34 IDENT_35 = ( ( org . kie . server . controller . api . model . spec . IDENT_34 ) ( IDENT_26 ) ) ; org . kie . server . api . model . IDENT_36 IDENT_37 = IDENT_21 . METHOD_38 ( ) ; if ( IDENT_37 == null ) { org . junit . Assert . fail ( STRING_1 8 ) ; } if ( ( ( IDENT_35 . METHOD_39 ( ) ) != null ) && ( ! ( IDENT_35 . METHOD_39 ( ) . equals ( IDENT_37 . getStatus ( ) ) ) ) ) { org . junit . Assert . fail ( STRING_1 2 ) ; } if ( ( IDENT_35 . METHOD_40 ( ) ) != null ) { if ( ! ( IDENT_35 . METHOD_40 ( ) . toString ( ) . equals ( IDENT_37 . METHOD_40 ( ) . toString ( ) ) ) ) { org . junit . Assert . fail ( STRING_4 0 ) ; } } } } } org . kie . server . api . model . IDENT_38 IDENT_39 = state . METHOD_13 ( ) ; if ( ( ( IDENT_39 . METHOD_34 ( IDENT_10 . IDENT_40 ) ) != null ) && ( template . METHOD_41 ( ) . contains ( IDENT_41 . IDENT_42 . name ( ) ) ) ) { org . junit . Assert . fail ( ( ( STRING_1 7 + ( org . kie . server . controller . api . model . spec . IDENT_41 . IDENT_42 ) ) + STRING_4 6 ) ) ; } if ( ( ( IDENT_39 . METHOD_34 ( IDENT_10 . IDENT_43 ) ) != null ) && ( template . METHOD_41 ( ) . contains ( IDENT_41 . IDENT_44 . name ( ) ) ) ) { org . junit . Assert . fail ( ( ( STRING_1 7 + ( org . kie . server . controller . api . model . spec . IDENT_41 . IDENT_44 ) ) + STRING_4 6 ) ) ; } if ( ( ( IDENT_39 . METHOD_34 ( IDENT_10 . IDENT_45 ) ) != null ) && ( template . METHOD_41 ( ) . contains ( IDENT_41 . IDENT_46 . name ( ) ) ) ) { org . junit . Assert . fail ( ( ( STRING_1 7 + ( org . kie . server . controller . api . model . spec . IDENT_41 . IDENT_46 ) ) + STRING_4 6 ) ) ; } } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ) ; } return result ; }
org . junit . Assert . assertTrue ( org . kie . server . controller . IDENT_1 . storage . IDENT_2 . METHOD_12 ( template , state ) )