METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_2 . IDENT_3 IDENT_4 = METHOD_1 ( org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_2 . IDENT_5 . METHOD_2 ( ) . build ( ) ) ; io . IDENT_6 . client . IDENT_7 client = mock ( io . IDENT_6 . client . IDENT_7 . class ) ; org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_8 < io . IDENT_6 . client . IDENT_7 > IDENT_9 = ( ) -> client ; when ( IDENT_4 . METHOD_3 ( any ( ) ) ) . thenReturn ( IDENT_9 ) ; IDENT_4 . start ( ) ; IDENT_4 . METHOD_4 ( ) ; int IDENT_10 = METHOD_5 ( client ) . METHOD_6 ( ) . size ( ) ; IDENT_4 . METHOD_7 ( ) ; IDENT_4 . METHOD_7 ( ) ; verify ( client ) . METHOD_8 ( ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( ) { if ( METHOD_9 ( ) ) { return ; } org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_2 . IDENT_3 . LOG . debug ( STRING_0 , getClass ( ) . METHOD_10 ( ) ) ; if ( ( client ) != null ) { client . METHOD_8 ( ) ; } state = IDENT_11 . IDENT_12 ; org . IDENT_0 . IDENT_1 . elasticsearch . IDENT_2 . IDENT_3 . LOG . debug ( STRING_1 , getClass ( ) . METHOD_10 ( ) ) ; }
org . junit . Assert . assertEquals ( ( IDENT_10 + 1 ) , METHOD_5 ( client ) . METHOD_6 ( ) . size ( ) )