METHOD_0 ( ) { com . IDENT_0 . xwiki . IDENT_1 context = mock ( com . IDENT_0 . xwiki . IDENT_1 . class ) ; com . IDENT_0 . xwiki . IDENT_2 xwiki = mock ( com . IDENT_0 . xwiki . IDENT_2 . class ) ; com . IDENT_0 . xwiki . doc . IDENT_3 document = mock ( com . IDENT_0 . xwiki . doc . IDENT_3 . class ) ; org . xwiki . model . reference . IDENT_4 IDENT_5 = mock ( org . xwiki . model . reference . IDENT_4 . class ) ; org . xwiki . model . reference . IDENT_6 IDENT_7 = mock ( org . xwiki . model . reference . IDENT_6 . class ) ; when ( this . IDENT_8 . get ( ) ) . thenReturn ( context ) ; when ( context . METHOD_1 ( ) ) . thenReturn ( xwiki ) ; when ( xwiki . METHOD_2 ( IDENT_7 , context ) ) . thenReturn ( document ) ; when ( document . METHOD_3 ( ) ) . thenReturn ( IDENT_5 ) ; org . xwiki . model . reference . IDENT_4 result = this . IDENT_9 . METHOD_4 ( ) . METHOD_3 ( IDENT_7 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { return this . IDENT_5 ; }
org . junit . Assert . assertEquals ( IDENT_5 , result )