METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_2 . IDENT_3 . Builder builder = org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_2 . IDENT_4 . METHOD_1 ( ) ; org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_5 < io . IDENT_6 . client . IDENT_7 , io . IDENT_6 . core . IDENT_8 > config = METHOD_2 ( builder . build ( ) ) ; io . IDENT_6 . client . IDENT_7 IDENT_9 = mock ( io . IDENT_6 . client . IDENT_7 . class ) ; when ( config . METHOD_3 ( ) ) . thenReturn ( IDENT_9 ) ; org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_10 IDENT_11 = METHOD_2 ( new org . IDENT_0 . IDENT_1 . elasticsearch . METHOD_4 ( ) ) ; java . util . function . IDENT_12 < io . IDENT_6 . core . IDENT_8 , java . lang . Boolean > listener = config . METHOD_5 ( IDENT_11 ) ; java . util . concurrent . atomic . IDENT_13 IDENT_14 = new java . util . concurrent . atomic . METHOD_6 ( ) ; org . IDENT_0 . IDENT_1 . elasticsearch . Operation operation = METHOD_2 ( new org . IDENT_0 . IDENT_1 . elasticsearch . Operation ( ) { @ org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_2 . Override public void execute ( ) throws org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_2 . Exception { IDENT_14 . METHOD_7 ( ) ; throw new java . lang . Exception ( STRING_0 ) ; } } ) ; config . METHOD_8 ( operation ) ; java . lang . String IDENT_15 = STRING_1 ; java . lang . String IDENT_16 = STRING_2 ; io . IDENT_6 . core . IDENT_8 IDENT_17 = METHOD_9 ( IDENT_15 , IDENT_16 ) ; listener . apply ( IDENT_17 ) ; "<AssertPlaceHolder>" ; } apply ( org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_18 ) { return true ; }
org . junit . Assert . assertEquals ( 1 , IDENT_14 . get ( ) )