METHOD_0 ( ) { final javax . IDENT_0 . IDENT_1 < com . IDENT_2 . xwiki . IDENT_3 > IDENT_4 = this . IDENT_5 . getInstance ( IDENT_3 . IDENT_6 ) ; final com . IDENT_2 . xwiki . IDENT_3 context = mock ( com . IDENT_2 . xwiki . IDENT_3 . class ) ; when ( IDENT_4 . get ( ) ) . thenReturn ( context ) ; when ( context . METHOD_1 ( ) ) . thenReturn ( this . xwiki ) ; when ( this . xwiki . METHOD_2 ( any ( org . xwiki . model . reference . IDENT_7 . class ) , any ( com . IDENT_2 . xwiki . IDENT_3 . class ) ) ) . thenReturn ( this . document ) ; when ( this . document . METHOD_3 ( ) ) . thenReturn ( false ) ; when ( this . document . METHOD_4 ( org . IDENT_8 . IDENT_9 . IDENT_10 . IDENT_11 ) ) . thenReturn ( this . object ) ; java . lang . String source = this . IDENT_12 . METHOD_5 ( org . IDENT_8 . IDENT_9 . IDENT_10 . IDENT_13 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . String ) { try { com . IDENT_2 . xwiki . IDENT_3 context = this . provider . get ( ) ; com . IDENT_2 . xwiki . doc . IDENT_14 IDENT_15 = context . METHOD_1 ( ) . METHOD_2 ( org . IDENT_8 . IDENT_9 . internal . solr . IDENT_16 . IDENT_17 , context ) ; if ( ( IDENT_15 == null ) || ( IDENT_15 . METHOD_3 ( ) ) ) { return original ; } com . IDENT_2 . xwiki . IDENT_18 . IDENT_19 object = IDENT_15 . METHOD_4 ( org . IDENT_8 . IDENT_9 . internal . solr . IDENT_16 . IDENT_11 , STRING_0 , original , false ) ; if ( object != null ) { java . lang . String IDENT_20 = object . METHOD_6 ( STRING_1 ) ; return org . apache . commons . lang3 . StringUtils . METHOD_7 ( IDENT_20 , original ) ; } } catch ( com . IDENT_2 . xwiki . IDENT_21 e ) { this . logger . error ( STRING_2 , e . getMessage ( ) , e ) ; } return original ; }
org . junit . Assert . assertEquals ( org . IDENT_8 . IDENT_9 . IDENT_10 . IDENT_13 , source )