METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . Node IDENT_2 = org . IDENT_0 . IDENT_1 . plugin . elasticsearch . IDENT_3 . IDENT_4 . METHOD_1 ( 1 ) ; org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . Node IDENT_5 = org . IDENT_0 . IDENT_1 . plugin . elasticsearch . IDENT_3 . IDENT_4 . METHOD_1 ( 2 ) ; org . elasticsearch . action . get . IDENT_6 IDENT_7 = mock ( org . elasticsearch . action . get . IDENT_6 . class ) ; doReturn ( IDENT_7 ) . when ( IDENT_8 ) . METHOD_2 ( org . IDENT_0 . IDENT_1 . plugin . elasticsearch . model . entity . IDENT_9 . class , 1 , 2 ) ; doReturn ( org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . Arrays . asList ( IDENT_2 , IDENT_5 ) ) . when ( IDENT_8 ) . METHOD_3 ( org . IDENT_0 . IDENT_1 . plugin . elasticsearch . model . entity . IDENT_9 . class , IDENT_7 ) ; org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . List < org . IDENT_0 . IDENT_1 . plugin . elasticsearch . model . entity . IDENT_9 > nodes = IDENT_8 . METHOD_0 ( org . IDENT_0 . IDENT_1 . plugin . elasticsearch . model . entity . IDENT_9 . class , 1 , 2 ) ; verify ( IDENT_8 ) . METHOD_2 ( org . IDENT_0 . IDENT_1 . plugin . elasticsearch . model . entity . IDENT_9 . class , 1 , 2 ) ; verify ( IDENT_8 ) . METHOD_3 ( org . IDENT_0 . IDENT_1 . plugin . elasticsearch . model . entity . IDENT_9 . class , IDENT_7 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . Class , org . elasticsearch . action . get . IDENT_6 ) { org . elasticsearch . action . get . IDENT_10 IDENT_11 = request . execute ( ) . METHOD_4 ( ) ; org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . List < T > entities = new org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . ArrayList < T > ( ) ; for ( org . elasticsearch . action . get . IDENT_12 item : IDENT_11 ) { entities . add ( METHOD_5 ( IDENT_13 , item ) ) ; } return org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . Collections . METHOD_6 ( entities ) ; }
org . junit . Assert . assertEquals ( org . IDENT_0 . IDENT_1 . plugin . elasticsearch . dao . Arrays . asList ( IDENT_2 , IDENT_5 ) , nodes )