METHOD_0 ( ) { org . IDENT_0 . platform . IDENT_1 . ui . model . IDENT_2 IDENT_3 = METHOD_1 ( org . IDENT_0 . platform . IDENT_1 . ui . controller . IDENT_4 . IDENT_5 , STRING_0 , STRING_1 , STRING_2 ) ; when ( IDENT_6 . METHOD_2 ( ) ) . thenReturn ( IDENT_7 ) ; METHOD_3 ( new org . IDENT_0 . framework . exceptions . METHOD_4 ( STRING_3 ) ) . when ( IDENT_8 ) . METHOD_5 ( org . mockito . Matchers . < org . IDENT_0 . platform . IDENT_1 . service . IDENT_9 > METHOD_6 ( ) ) ; java . lang . String result = IDENT_10 . METHOD_7 ( IDENT_3 , IDENT_6 , true ) ; "<AssertPlaceHolder>" ; verify ( IDENT_8 ) . METHOD_5 ( org . mockito . Matchers . < org . IDENT_0 . platform . IDENT_1 . service . IDENT_9 > METHOD_6 ( ) ) ; verify ( IDENT_6 ) . METHOD_2 ( ) ; verify ( IDENT_7 ) . METHOD_8 ( METHOD_9 ( new org . IDENT_0 . platform . matchers . METHOD_10 ( STRING_3 ) ) ) ; } METHOD_7 ( org . IDENT_0 . platform . IDENT_1 . ui . model . IDENT_2 , org . springframework . IDENT_11 . IDENT_12 . IDENT_13 , boolean ) { java . lang . String result = STRING_4 ; if ( ! ( METHOD_11 ( IDENT_3 , IDENT_6 ) ) ) { org . IDENT_0 . platform . IDENT_1 . service . IDENT_9 IDENT_14 = null ; try { if ( IDENT_15 ) { IDENT_3 . METHOD_12 ( true ) ; } if ( IDENT_3 . METHOD_13 ( ) ) { IDENT_14 = IDENT_8 . METHOD_5 ( IDENT_3 . METHOD_14 ( ) ) ; } else { IDENT_14 = IDENT_8 . METHOD_15 ( IDENT_3 . METHOD_14 ( ) ) ; } if ( ( METHOD_16 ( IDENT_3 . METHOD_17 ( ) ) ) && ( IDENT_3 . METHOD_18 ( ) ) ) { IDENT_8 . METHOD_19 ( IDENT_14 . getId ( ) ) ; } java . util . List < org . IDENT_0 . platform . IDENT_1 . service . IDENT_16 > IDENT_17 = METHOD_20 ( IDENT_3 . METHOD_21 ( ) , IDENT_14 ) ; java . util . List < org . IDENT_0 . platform . IDENT_1 . service . IDENT_18 > IDENT_19 = METHOD_22 ( IDENT_3 . METHOD_23 ( ) , IDENT_14 ) ; IDENT_8 . METHOD_24 ( IDENT_17 ) ; IDENT_8 . METHOD_25 ( IDENT_19 ) ; } catch ( org . springframework . security . IDENT_20 . IDENT_21 e ) { METHOD_26 ( IDENT_6 . METHOD_2 ( ) , new org . IDENT_0 . framework . exceptions . METHOD_4 ( org . IDENT_0 . platform . IDENT_1 . IDENT_22 . IDENT_23 , e ) ) ; result = STRING_5 ; } catch ( org . IDENT_0 . framework . exceptions . METHOD_4 e ) { METHOD_26 ( IDENT_6 . METHOD_2 ( ) , e ) ; result = STRING_5 ; } } else { result = STRING_5 ; } return result ; }
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( STRING_5 ) )