METHOD_0 ( ) { final java . util . List < com . IDENT_0 . db . repository . elasticsearch . Person > IDENT_1 = repository . METHOD_1 ( com . google . common . collect . ImmutableList . of ( com . IDENT_0 . db . repository . elasticsearch . IDENT_2 . IDENT_3 ) ) ; "<AssertPlaceHolder>" ; repository . delete ( IDENT_1 . get ( 0 ) ) ; } METHOD_1 ( java . util . List ) { if ( entities . isEmpty ( ) ) { return entities ; } final org . elasticsearch . action . IDENT_4 . IDENT_5 IDENT_4 = client . METHOD_2 ( ) . METHOD_3 ( policy . get ( ) ) ; for ( final T entity : entities ) { final java . lang . String source = serializer . apply ( entity ) ; final org . elasticsearch . action . index . IDENT_6 request = client . METHOD_4 ( index , type ) . METHOD_5 ( source , com . IDENT_0 . db . repository . elasticsearch . IDENT_7 ) ; METHOD_6 ( METHOD_7 ( entity . getId ( ) ) ) . METHOD_8 ( request :: setId ) ; IDENT_4 . add ( request ) ; } final org . elasticsearch . action . IDENT_4 . IDENT_8 response = IDENT_4 . execute ( ) . METHOD_9 ( ) ; final org . elasticsearch . action . IDENT_4 . IDENT_9 [ ] IDENT_10 = response . METHOD_10 ( ) ; final com . google . common . collect . ImmutableList . Builder < T > IDENT_1 = com . google . common . collect . ImmutableList . builder ( ) ; for ( int i = 0 ; i < ( IDENT_10 . length ) ; i ++ ) { final org . elasticsearch . action . IDENT_4 . IDENT_9 item = IDENT_10 [ i ] ; @ com . IDENT_0 . db . repository . elasticsearch . METHOD_11 ( STRING_0 ) final T entity = ( ( T ) ( entities . get ( i ) . METHOD_12 ( item . getId ( ) ) ) ) ; IDENT_1 . add ( entity ) ; } return IDENT_1 . build ( ) ; }
org . junit . Assert . assertEquals ( 1 , IDENT_1 . size ( ) )