METHOD_0 ( ) { org . IDENT_0 . data . IDENT_1 p = mock ( org . IDENT_0 . data . IDENT_1 . class ) ; org . IDENT_0 . data . IDENT_2 . internal . IDENT_3 helper = mock ( org . IDENT_0 . data . IDENT_2 . internal . IDENT_3 . class ) ; org . IDENT_0 . data . IDENT_2 . internal . IDENT_4 IDENT_5 = mock ( org . IDENT_0 . data . IDENT_2 . internal . IDENT_4 . class ) ; org . IDENT_0 . data . IDENT_2 . internal . IDENT_6 IDENT_7 = mock ( org . IDENT_0 . data . IDENT_2 . internal . IDENT_6 . class ) ; org . IDENT_0 . data . IDENT_2 . IDENT_8 IDENT_9 = new org . IDENT_0 . data . IDENT_2 . internal . METHOD_1 ( p , helper , IDENT_5 , IDENT_7 ) ; when ( IDENT_5 . METHOD_2 ( p ) ) . thenReturn ( org . IDENT_0 . data . IDENT_2 . internal . IDENT_10 . IDENT_11 ) ; org . IDENT_0 . data . IDENT_2 . IDENT_12 IDENT_13 = new org . IDENT_0 . data . IDENT_2 . internal . IDENT_14 . METHOD_3 ( ) ; when ( IDENT_5 . METHOD_4 ( p , org . IDENT_0 . data . IDENT_2 . internal . IDENT_10 . IDENT_15 ) ) . thenReturn ( true ) ; when ( helper . METHOD_5 ( ) ) . thenReturn ( org . IDENT_0 . data . IDENT_2 . internal . IDENT_10 . IDENT_16 ) ; when ( IDENT_5 . METHOD_6 ( p , org . IDENT_0 . data . IDENT_2 . internal . IDENT_10 . IDENT_15 ) ) . thenReturn ( IDENT_13 ) ; org . IDENT_0 . data . IDENT_2 . IDENT_17 IDENT_18 = mock ( org . IDENT_0 . data . IDENT_2 . IDENT_17 . class ) ; when ( IDENT_7 . METHOD_7 ( p ) ) . thenReturn ( IDENT_18 ) ; org . IDENT_0 . data . IDENT_2 . IDENT_12 IDENT_19 = new org . IDENT_0 . data . IDENT_2 . internal . IDENT_14 . METHOD_8 ( ) ; when ( IDENT_5 . METHOD_9 ( STRING_0 ) ) . thenReturn ( IDENT_19 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( org . xwiki . model . reference . IDENT_20 ) { if ( user == null ) { final org . IDENT_0 . data . IDENT_2 . IDENT_21 IDENT_19 = this . METHOD_2 ( ) ; if ( ( IDENT_19 == null ) || ( ( IDENT_19 . METHOD_10 ( ) ) == null ) ) { return this . IDENT_22 . METHOD_9 ( org . IDENT_0 . data . IDENT_2 . internal . IDENT_23 . IDENT_24 ) ; } return this . IDENT_22 . METHOD_9 ( org . IDENT_0 . data . IDENT_2 . internal . IDENT_23 . IDENT_25 ) ; } if ( ( METHOD_11 ( user ) ) || ( this . IDENT_22 . METHOD_4 ( this . entity , new org . xwiki . model . reference . METHOD_12 ( user ) ) ) ) { return this . IDENT_22 . METHOD_9 ( org . IDENT_0 . data . IDENT_2 . internal . IDENT_23 . IDENT_24 ) ; } org . IDENT_0 . data . IDENT_2 . IDENT_12 IDENT_26 = this . IDENT_22 . METHOD_6 ( this . entity , user ) ; org . IDENT_0 . data . IDENT_2 . IDENT_12 IDENT_27 = METHOD_7 ( ) . METHOD_13 ( ) ; if ( ( IDENT_26 . compareTo ( IDENT_27 ) ) > 0 ) { return IDENT_26 ; } return IDENT_27 ; }
org . junit . Assert . assertSame ( IDENT_19 , IDENT_9 . METHOD_6 ( org . IDENT_0 . data . IDENT_2 . internal . IDENT_10 . IDENT_15 ) )