METHOD_0 ( ) { org . xwiki . IDENT_0 . IDENT_1 IDENT_2 = this . IDENT_3 . getInstance ( org . xwiki . IDENT_0 . IDENT_1 . class ) ; org . xwiki . model . reference . IDENT_4 IDENT_5 = new org . xwiki . model . reference . METHOD_1 ( STRING_0 , STRING_1 , STRING_2 ) ; when ( IDENT_2 . METHOD_2 ( ) ) . thenReturn ( IDENT_5 ) ; org . xwiki . model . reference . IDENT_6 < java . lang . String > resolver = this . IDENT_3 . getInstance ( IDENT_6 . IDENT_7 ) ; org . xwiki . model . reference . METHOD_1 IDENT_8 = new org . xwiki . model . reference . METHOD_1 ( STRING_3 , STRING_4 , STRING_5 ) ; when ( resolver . resolve ( STRING_6 , IDENT_5 ) ) . thenReturn ( IDENT_8 ) ; org . xwiki . IDENT_9 . block . IDENT_10 IDENT_11 = mock ( org . xwiki . IDENT_9 . block . IDENT_10 . class ) ; org . xwiki . IDENT_9 . block . IDENT_12 IDENT_13 = new org . xwiki . IDENT_9 . block . METHOD_3 ( java . util . Collections . IDENT_14 , new org . xwiki . IDENT_9 . listener . METHOD_4 ( java . util . Collections . METHOD_5 ( METHOD_4 . IDENT_15 , ( ( java . lang . Object ) ( STRING_6 ) ) ) ) ) ; when ( IDENT_11 . METHOD_6 ( any ( org . xwiki . IDENT_9 . block . match . IDENT_16 . class ) , any ( IDENT_17 . IDENT_18 . class ) ) ) . thenReturn ( IDENT_13 ) ; org . xwiki . IDENT_9 . internal . IDENT_19 . chart . source . table . IDENT_20 source = this . IDENT_3 . METHOD_7 ( ) ; source . METHOD_8 ( STRING_7 , STRING_6 ) ; "<AssertPlaceHolder>" ; } METHOD_9 ( org . xwiki . IDENT_9 . block . IDENT_10 ) { boolean result ; if ( ( this . IDENT_8 ) == null ) { result = true ; } else { java . lang . String IDENT_21 = METHOD_10 ( IDENT_11 ) ; if ( this . IDENT_22 . resolve ( IDENT_21 , this . IDENT_23 . METHOD_2 ( ) ) . equals ( this . IDENT_8 ) ) { result = true ; } else { result = false ; } } return result ; }
org . junit . Assert . assertTrue ( source . METHOD_9 ( IDENT_11 ) )