METHOD_0 ( ) { org . apache . IDENT_0 . indexing . dao . search . IDENT_1 IDENT_2 = new org . apache . IDENT_0 . indexing . dao . search . METHOD_1 ( ) ; IDENT_2 . METHOD_2 ( java . util . Collections . singletonList ( STRING_0 ) ) ; IDENT_2 . METHOD_3 ( java . util . Collections . singletonList ( STRING_1 ) ) ; org . apache . solr . client . IDENT_3 . response . IDENT_4 IDENT_5 = mock ( org . apache . solr . client . IDENT_3 . response . IDENT_4 . class ) ; org . apache . solr . common . IDENT_6 IDENT_7 = new org . apache . solr . common . METHOD_4 ( ) ; IDENT_7 . METHOD_5 ( Constants . IDENT_8 , STRING_2 ) ; IDENT_7 . METHOD_5 ( STRING_0 , STRING_2 ) ; org . apache . solr . common . METHOD_4 IDENT_9 = new org . apache . solr . common . METHOD_4 ( ) ; IDENT_9 . METHOD_5 ( Constants . IDENT_8 , STRING_3 ) ; IDENT_9 . METHOD_5 ( STRING_0 , STRING_3 ) ; IDENT_10 = METHOD_6 ( new org . apache . IDENT_0 . solr . dao . METHOD_7 ( client , IDENT_11 ) ) ; org . apache . solr . common . IDENT_12 IDENT_13 = new org . apache . solr . common . METHOD_8 ( ) ; IDENT_13 . add ( IDENT_7 ) ; IDENT_13 . add ( IDENT_9 ) ; IDENT_13 . METHOD_9 ( 100 ) ; when ( IDENT_5 . METHOD_10 ( ) ) . thenReturn ( IDENT_13 ) ; org . apache . IDENT_0 . indexing . dao . search . IDENT_14 IDENT_15 = new org . apache . IDENT_0 . indexing . dao . search . METHOD_11 ( ) ; IDENT_15 . setId ( STRING_2 ) ; java . util . HashMap < java . lang . String , java . lang . Object > IDENT_16 = new java . util . HashMap ( ) ; IDENT_16 . put ( STRING_0 , STRING_2 ) ; IDENT_15 . METHOD_12 ( IDENT_16 ) ; org . apache . IDENT_0 . indexing . dao . search . METHOD_11 IDENT_17 = new org . apache . IDENT_0 . indexing . dao . search . METHOD_11 ( ) ; IDENT_17 . setId ( STRING_3 ) ; java . util . HashMap < java . lang . String , java . lang . Object > IDENT_18 = new java . util . HashMap ( ) ; IDENT_18 . put ( STRING_0 , STRING_3 ) ; IDENT_17 . METHOD_12 ( IDENT_18 ) ; java . util . Map < java . lang . String , java . util . Map < java . lang . String , java . lang . Long > > IDENT_19 = new java . util . HashMap < java . lang . String , java . util . Map < java . lang . String , java . lang . Long > > ( ) { { put ( STRING_0 , new java . util . HashMap < java . lang . String , java . lang . Long > ( ) { { put ( STRING_2 , 1L ) ; put ( STRING_3 , 1L ) ; } } ) ; } } ; doReturn ( IDENT_19 ) . when ( IDENT_10 ) . METHOD_13 ( java . util . Collections . singletonList ( STRING_1 ) , IDENT_5 ) ; org . apache . IDENT_0 . indexing . dao . search . IDENT_20 IDENT_21 = new org . apache . IDENT_0 . indexing . dao . search . METHOD_14 ( ) ; org . apache . IDENT_0 . indexing . dao . search . METHOD_11 IDENT_22 = new org . apache . IDENT_0 . indexing . dao . search . METHOD_11 ( ) ; IDENT_22 . setId ( STRING_2 ) ; IDENT_22 . METHOD_12 ( IDENT_16 ) ; org . apache . IDENT_0 . indexing . dao . search . METHOD_11 IDENT_23 = new org . apache . IDENT_0 . indexing . dao . search . METHOD_11 ( ) ; IDENT_23 . setId ( STRING_3 ) ; IDENT_23 . METHOD_12 ( IDENT_18 ) ; IDENT_21 . METHOD_15 ( java . util . Arrays . asList ( IDENT_22 , IDENT_23 ) ) ; IDENT_21 . METHOD_16 ( 100 ) ; IDENT_21 . METHOD_17 ( IDENT_19 ) ; "<AssertPlaceHolder>" ; } METHOD_18 ( org . apache . IDENT_0 . indexing . dao . search . METHOD_1 , org . elasticsearch . action . search . METHOD_14 ) { org . apache . IDENT_0 . indexing . dao . search . METHOD_14 IDENT_24 = new org . apache . IDENT_0 . indexing . dao . search . METHOD_14 ( ) ; IDENT_24 . METHOD_16 ( IDENT_25 . METHOD_19 ( ) . METHOD_20 ( ) ) ; java . util . List < org . apache . IDENT_0 . indexing . dao . search . METHOD_11 > results = new java . util . ArrayList ( ) ; for ( org . elasticsearch . search . IDENT_26 IDENT_27 : IDENT_25 . METHOD_19 ( ) . METHOD_19 ( ) ) { results . add ( METHOD_21 ( IDENT_27 , IDENT_2 . METHOD_22 ( ) ) ) ; } IDENT_24 . METHOD_15 ( results ) ; if ( ( IDENT_2 . METHOD_23 ( ) ) != null ) { java . util . List < java . lang . String > IDENT_28 = IDENT_2 . METHOD_23 ( ) ; java . util . Map < java . lang . String , org . apache . IDENT_0 . indexing . dao . search . IDENT_29 > IDENT_30 ; try { IDENT_30 = IDENT_31 . METHOD_24 ( IDENT_2 . METHOD_25 ( ) ) ; } catch ( java . io . IOException e ) { throw new org . apache . IDENT_0 . indexing . dao . search . METHOD_26 ( java . lang . String . format ( STRING_4 , java . util . Arrays . toString ( IDENT_2 . METHOD_25 ( ) . toArray ( ) ) ) ) ; } IDENT_24 . METHOD_17 ( METHOD_13 ( IDENT_28 , IDENT_25 . METHOD_27 ( ) , IDENT_30 ) ) ; } if ( org . apache . IDENT_0 . elasticsearch . dao . IDENT_32 . LOG . METHOD_28 ( ) ) { org . apache . IDENT_0 . elasticsearch . dao . IDENT_32 . LOG . debug ( STRING_5 , org . apache . IDENT_0 . elasticsearch . utils . IDENT_33 . METHOD_29 ( IDENT_24 ) . METHOD_30 ( STRING_6 ) ) ; } return IDENT_24 ; }
org . junit . Assert . assertEquals ( IDENT_21 , IDENT_10 . METHOD_18 ( IDENT_2 , IDENT_5 ) )