METHOD_0 ( ) { java . util . Optional < IDENT_0 . Result > IDENT_1 = java . util . Optional . of ( result ) ; org . mockito . Mockito . when ( messages . get ( IDENT_2 . IDENT_3 , context , IDENT_1 ) ) . thenReturn ( java . util . Optional . of ( STRING_0 ) ) ; IDENT_0 . validation . IDENT_4 IDENT_5 = new IDENT_0 . validation . METHOD_1 ( IDENT_0 . validation . IDENT_2 . IDENT_3 , STRING_1 , IDENT_0 . validation . IDENT_2 . IDENT_6 ) ; java . util . List args = new java . util . ArrayList ( ) ; args . add ( new IDENT_7 . ext . beans . METHOD_2 ( IDENT_5 , new IDENT_7 . ext . beans . METHOD_3 ( ) ) ) ; IDENT_7 . template . IDENT_8 IDENT_9 = IDENT_10 . exec ( args ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_11 , org . mockito . Mockito . METHOD_4 ( ) ) . METHOD_5 ( org . mockito . Matchers . METHOD_6 ( ) ) ; } exec ( java . util . List ) { if ( ( args . size ( ) ) == 0 ) { throw new IDENT_7 . template . METHOD_7 ( STRING_2 ) ; } if ( ( IDENT_12 ) && ( ( ( args . size ( ) ) == 1 ) || ( ! ( ( ( IDENT_7 . template . IDENT_13 ) ( args . get ( 1 ) ) ) . METHOD_8 ( ) ) ) ) ) { java . lang . String IDENT_14 = ( ( IDENT_7 . template . IDENT_15 ) ( args . get ( 0 ) ) ) . METHOD_9 ( ) ; return new IDENT_7 . template . METHOD_10 ( ( ( IDENT_0 . template . IDENT_16 . IDENT_17 ) + IDENT_14 ) ) ; } else { java . util . List IDENT_18 = new java . util . ArrayList ( ) ; IDENT_18 . add ( IDENT_0 . IDENT_19 . class . getName ( ) ) ; IDENT_18 . add ( STRING_3 ) ; IDENT_18 . add ( STRING_4 ) ; IDENT_18 . addAll ( args ) ; return IDENT_20 . METHOD_11 ( IDENT_18 ) ; } }
org . junit . Assert . assertThat ( ( ( IDENT_7 . template . METHOD_10 ) ( IDENT_9 ) ) . METHOD_9 ( ) , org . hamcrest . CoreMatchers . equalTo ( STRING_0 ) )