METHOD_0 ( ) { java . lang . String input = "a" ; java . lang . String IDENT_0 = STRING_0 ; 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 . json . JSONObject IDENT_6 = new org . json . JSONObject ( ) ; IDENT_6 . put ( STRING_2 , IDENT_1 ) ; IDENT_6 . put ( "value" , IDENT_0 ) ; IDENT_6 . put ( STRING_3 , IDENT_1 ) ; IDENT_6 . put ( STRING_4 , IDENT_0 ) ; IDENT_3 . put ( IDENT_6 ) ; org . xwiki . query . Query q = mock ( org . xwiki . query . Query . class ) ; when ( q . METHOD_2 ( STRING_5 , ( ( STRING_6 + input ) + STRING_6 ) ) ) . thenReturn ( q ) ; when ( q . < java . lang . String > execute ( ) ) . thenReturn ( IDENT_4 ) ; org . xwiki . query . IDENT_7 IDENT_8 = this . IDENT_9 . getInstance ( org . xwiki . query . IDENT_7 . class ) ; when ( IDENT_8 . METHOD_3 ( org . IDENT_10 . IDENT_11 . internal . IDENT_12 . IDENT_13 , Query . IDENT_14 ) ) . thenReturn ( q ) ; org . xwiki . IDENT_15 . User IDENT_16 = mock ( org . xwiki . IDENT_15 . User . class ) ; when ( IDENT_16 . getName ( ) ) . thenReturn ( IDENT_0 ) ; when ( IDENT_16 . METHOD_4 ( ) ) . thenReturn ( IDENT_1 ) ; org . xwiki . IDENT_15 . IDENT_17 IDENT_18 = this . IDENT_9 . getInstance ( org . xwiki . IDENT_15 . IDENT_17 . class ) ; when ( IDENT_18 . METHOD_5 ( IDENT_1 ) ) . thenReturn ( IDENT_16 ) ; org . json . JSONObject IDENT_19 = new org . json . JSONObject ( ) ; IDENT_19 . put ( STRING_7 , IDENT_3 ) ; java . lang . String IDENT_20 = this . IDENT_9 . METHOD_6 ( ) . search ( input , 10 , true , false , true ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( getId ( ) ) + STRING_8 ) + ( getType ( ) . getName ( ) ) ) + "]" ; }
org . junit . Assert . assertEquals ( IDENT_19 . toString ( ) , IDENT_20 )