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