METHOD_0 ( ) { "<AssertPlaceHolder>" ; } METHOD_1 ( java . util . List ) { if ( IDENT_0 . isEmpty ( ) ) { return com . google . common . collect . ImmutableList . of ( ) ; } final com . google . common . collect . ImmutableList . Builder < T > builder = com . google . common . collect . ImmutableList . builder ( ) ; final org . elasticsearch . action . get . IDENT_1 response = client . METHOD_2 ( ) . add ( index , type , IDENT_0 ) . execute ( ) . METHOD_3 ( ) ; for ( final org . elasticsearch . action . get . IDENT_2 item : response . METHOD_4 ( ) ) { final org . elasticsearch . action . get . IDENT_3 get = item . METHOD_5 ( ) ; if ( get . METHOD_6 ( ) ) { continue ; } final java . lang . String json = get . METHOD_7 ( ) ; final T entity = IDENT_4 . apply ( json ) ; builder . add ( ( ( T ) ( entity . METHOD_8 ( get . getId ( ) ) ) ) ) ; } return builder . build ( ) ; }
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableList . of ( ) , repository . METHOD_1 ( com . google . common . collect . ImmutableList . of ( ) ) )