METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . IDENT_2 IDENT_3 = org . IDENT_0 . IDENT_1 . plugin . elasticsearch . IDENT_4 . IDENT_5 . METHOD_1 ( ) ; org . elasticsearch . action . get . IDENT_6 IDENT_7 = mock ( org . elasticsearch . action . get . IDENT_6 . class ) ; when ( IDENT_8 . METHOD_2 ( ) ) . thenReturn ( IDENT_7 ) ; org . elasticsearch . action . IDENT_9 < org . elasticsearch . action . get . IDENT_10 > IDENT_11 = mock ( org . elasticsearch . action . IDENT_9 . class ) ; when ( IDENT_7 . execute ( ) ) . thenReturn ( IDENT_11 ) ; org . elasticsearch . action . get . IDENT_10 IDENT_12 = mock ( org . elasticsearch . action . get . IDENT_10 . class ) ; when ( IDENT_11 . METHOD_3 ( ) ) . thenReturn ( IDENT_12 ) ; org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . Iterator < org . elasticsearch . action . get . IDENT_13 > IDENT_14 = mock ( org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . Iterator . class ) ; when ( IDENT_12 . iterator ( ) ) . thenReturn ( IDENT_14 ) ; org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . Iterator < org . elasticsearch . action . get . IDENT_13 > actual = IDENT_15 . METHOD_0 ( org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . Arrays . asList ( IDENT_3 ) ) ; org . elasticsearch . action . get . IDENT_16 . IDENT_17 item = new org . elasticsearch . action . get . IDENT_16 . METHOD_4 ( org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . IDENT_18 . IDENT_19 , IDENT_20 . IDENT_21 . METHOD_5 ( ) , "1" ) ; verify ( IDENT_7 ) . add ( METHOD_6 ( new org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . IDENT_18 . METHOD_7 ( item ) ) ) ; verify ( IDENT_7 , times ( 1 ) ) . execute ( ) ; "<AssertPlaceHolder>" ; } add ( org . IDENT_0 . IDENT_1 . core . domain . IDENT_22 . Entity ) { buffer . add ( entity ) ; if ( ( buffer . size ( ) ) == ( size ) ) { METHOD_8 ( ) ; return true ; } else return false ; }
org . junit . Assert . assertSame ( IDENT_14 , actual )