METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . domain . model . IDENT_2 IDENT_3 = new org . IDENT_0 . IDENT_1 . domain . model . METHOD_1 ( STRING_0 ) ; IDENT_3 . METHOD_2 ( 1 ) ; IDENT_3 . METHOD_3 ( 2 ) ; org . IDENT_0 . IDENT_1 . domain . model . IDENT_4 IDENT_5 = new org . IDENT_0 . IDENT_1 . domain . model . METHOD_4 ( STRING_1 ) ; IDENT_3 . METHOD_5 ( IDENT_5 ) ; IDENT_3 . METHOD_6 ( METHOD_1 . IDENT_6 ) ; when ( IDENT_7 . METHOD_7 ( STRING_0 ) ) . thenReturn ( java . util . Optional . of ( IDENT_3 ) ) ; when ( IDENT_7 . METHOD_8 ( STRING_0 ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_8 . METHOD_9 ( IDENT_5 ) ) . thenReturn ( false ) ; IDENT_9 . METHOD_10 ( STRING_0 ) ; org . mockito . IDENT_10 < java . lang . String > IDENT_11 = org . mockito . IDENT_10 . METHOD_11 ( java . lang . String . class ) ; verify ( IDENT_7 , times ( 1 ) ) . METHOD_12 ( IDENT_11 . METHOD_13 ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_10 ( java . lang . String ) { org . IDENT_0 . IDENT_1 . domain . model . METHOD_1 IDENT_3 = METHOD_14 ( IDENT_12 ) ; java . lang . String IDENT_13 = IDENT_3 . METHOD_15 ( ) ; if ( METHOD_1 . IDENT_14 . equals ( IDENT_13 ) ) { org . IDENT_0 . IDENT_15 . common . message . IDENT_16 message = org . IDENT_0 . IDENT_15 . common . message . IDENT_16 . error ( ) . add ( IDENT_17 . IDENT_18 ) ; throw new org . IDENT_0 . IDENT_15 . common . exception . METHOD_16 ( message ) ; } org . IDENT_0 . IDENT_1 . domain . model . METHOD_4 info = IDENT_3 . METHOD_17 ( ) ; if ( IDENT_8 . METHOD_9 ( info ) ) { org . IDENT_0 . IDENT_15 . common . message . IDENT_16 message = org . IDENT_0 . IDENT_15 . common . message . IDENT_16 . error ( ) . add ( IDENT_17 . IDENT_19 ) ; throw new org . IDENT_0 . IDENT_15 . common . exception . METHOD_16 ( message ) ; } IDENT_3 = IDENT_7 . METHOD_8 ( IDENT_12 ) ; if ( IDENT_3 != null ) { IDENT_7 . METHOD_12 ( IDENT_12 ) ; } else { org . IDENT_0 . IDENT_15 . common . message . IDENT_16 message = org . IDENT_0 . IDENT_15 . common . message . IDENT_16 . error ( ) . add ( IDENT_17 . IDENT_20 ) ; throw new org . IDENT_0 . IDENT_15 . common . exception . METHOD_16 ( message ) ; } log . debug ( STRING_2 , IDENT_12 ) ; }
org . junit . Assert . assertThat ( IDENT_11 . getValue ( ) , org . hamcrest . CoreMatchers . is ( STRING_0 ) )