METHOD_0 ( ) { java . lang . String input = STRING_0 0 ; java . lang . String IDENT_0 = STRING_0 1 ; java . lang . String IDENT_1 = STRING_1 ; org . json . IDENT_2 IDENT_3 = new org . json . METHOD_1 ( ) ; java . util . List < java . lang . String > IDENT_4 = new java . util . IDENT_5 < java . lang . String > ( ) ; IDENT_4 . add ( IDENT_1 ) ; org . xwiki . query . Query q = mock ( org . xwiki . query . Query . class ) ; when ( q . METHOD_2 ( STRING_2 , ( ( STRING_0 + input ) + STRING_0 ) ) ) . thenReturn ( q ) ; when ( q . < java . lang . String > execute ( ) ) . thenReturn ( IDENT_4 ) ; org . xwiki . query . IDENT_6 IDENT_7 = this . IDENT_8 . getInstance ( org . xwiki . query . IDENT_6 . class ) ; when ( IDENT_7 . METHOD_3 ( org . IDENT_9 . IDENT_10 . internal . IDENT_11 . IDENT_12 , Query . IDENT_13 ) ) . thenReturn ( q ) ; org . xwiki . model . reference . IDENT_14 IDENT_15 = new org . xwiki . model . reference . METHOD_4 ( STRING_3 , STRING_4 , IDENT_0 ) ; org . IDENT_9 . IDENT_10 . IDENT_16 g = mock ( org . IDENT_9 . IDENT_10 . IDENT_16 . class ) ; when ( g . METHOD_5 ( ) ) . thenReturn ( IDENT_15 ) ; com . IDENT_17 . xwiki . doc . IDENT_18 doc = mock ( com . IDENT_17 . xwiki . doc . IDENT_18 . class ) ; org . xwiki . IDENT_19 . IDENT_20 IDENT_19 = this . IDENT_8 . getInstance ( org . xwiki . IDENT_19 . IDENT_20 . class ) ; when ( IDENT_19 . METHOD_6 ( IDENT_15 ) ) . thenReturn ( doc ) ; when ( doc . METHOD_7 ( ) ) . thenReturn ( IDENT_0 ) ; org . IDENT_9 . IDENT_10 . IDENT_21 IDENT_22 = this . IDENT_8 . getInstance ( org . IDENT_9 . IDENT_10 . IDENT_21 . class ) ; when ( IDENT_22 . METHOD_8 ( IDENT_1 ) ) . thenReturn ( g ) ; org . json . JSONObject IDENT_23 = new org . json . JSONObject ( ) ; IDENT_23 . put ( STRING_5 , IDENT_0 ) ; IDENT_23 . put ( "value" , IDENT_1 ) ; IDENT_23 . put ( STRING_6 , IDENT_1 ) ; IDENT_23 . put ( STRING_7 , IDENT_0 ) ; IDENT_3 . put ( IDENT_23 ) ; org . json . JSONObject IDENT_24 = new org . json . JSONObject ( ) ; IDENT_24 . put ( STRING_8 , IDENT_3 ) ; java . lang . String IDENT_25 = this . IDENT_8 . METHOD_9 ( ) . search ( input , 10 , false , true , true ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( getId ( ) ) + STRING_9 ) + ( getType ( ) . getName ( ) ) ) + "]" ; }
org . junit . Assert . assertEquals ( IDENT_24 . toString ( ) , IDENT_25 )