METHOD_0 ( ) { com . IDENT_0 . xwiki . doc . IDENT_1 document = mock ( com . IDENT_0 . xwiki . doc . IDENT_1 . class ) ; when ( document . METHOD_1 ( ) ) . thenReturn ( new org . xwiki . model . reference . METHOD_2 ( STRING_0 , STRING_1 , STRING_2 ) ) ; when ( this . IDENT_2 . METHOD_3 ( ) . METHOD_4 ( ) . METHOD_5 ( document . METHOD_1 ( ) , this . IDENT_2 . METHOD_3 ( ) ) ) . thenReturn ( document ) ; com . IDENT_0 . xwiki . doc . IDENT_3 IDENT_4 = new com . IDENT_0 . xwiki . doc . METHOD_6 ( document , STRING_3 ) ; IDENT_4 . METHOD_7 ( STRING_4 ) ; com . IDENT_0 . xwiki . doc . METHOD_6 IDENT_5 = new com . IDENT_0 . xwiki . doc . METHOD_6 ( document , IDENT_4 . METHOD_8 ( ) ) ; IDENT_5 . METHOD_7 ( STRING_5 ) ; when ( document . METHOD_9 ( IDENT_4 . METHOD_8 ( ) ) ) . thenReturn ( IDENT_5 ) ; com . IDENT_0 . xwiki . doc . IDENT_6 content = mock ( com . IDENT_0 . xwiki . doc . IDENT_6 . class ) ; when ( content . METHOD_10 ( ) ) . thenReturn ( mock ( java . io . InputStream . class ) ) ; com . IDENT_0 . xwiki . doc . METHOD_6 IDENT_7 = new com . IDENT_0 . xwiki . doc . METHOD_6 ( document , IDENT_4 . METHOD_8 ( ) ) ; IDENT_7 . METHOD_11 ( content ) ; com . IDENT_0 . xwiki . doc . IDENT_8 IDENT_9 = mock ( com . IDENT_0 . xwiki . doc . IDENT_8 . class ) ; when ( IDENT_9 . METHOD_12 ( IDENT_4 , IDENT_4 . METHOD_13 ( ) , this . IDENT_2 . METHOD_3 ( ) ) ) . thenReturn ( IDENT_7 ) ; com . IDENT_0 . xwiki . store . IDENT_10 store = mock ( com . IDENT_0 . xwiki . store . IDENT_10 . class ) ; when ( this . IDENT_2 . METHOD_3 ( ) . METHOD_4 ( ) . METHOD_14 ( ) ) . thenReturn ( store ) ; when ( store . METHOD_15 ( IDENT_4 , this . IDENT_2 . METHOD_3 ( ) , true ) ) . thenReturn ( IDENT_9 ) ; "<AssertPlaceHolder>" ; } METHOD_10 ( ) { if ( ( this . file ) == null ) { return new java . io . ByteArrayInputStream ( com . IDENT_0 . xwiki . doc . IDENT_6 . IDENT_11 ) ; } try { return new org . apache . commons . io . input . METHOD_16 ( this . file . METHOD_17 ( ) ) ; } catch ( java . io . IOException e ) { throw new java . lang . RuntimeException ( STRING_6 , e ) ; } }
org . junit . Assert . assertSame ( content . METHOD_10 ( ) , IDENT_4 . METHOD_10 ( this . IDENT_2 . METHOD_3 ( ) ) )