METHOD_0 ( ) { org . xwiki . IDENT_0 . internal . IDENT_1 reference = new org . xwiki . IDENT_0 . internal . METHOD_1 ( STRING_0 , java . util . Arrays . asList ( STRING_1 , STRING_2 , STRING_3 ) ) ; reference . METHOD_2 ( STRING_4 , true ) ; java . io . ByteArrayInputStream IDENT_2 = new java . io . ByteArrayInputStream ( STRING_5 . getBytes ( ) ) ; when ( this . IDENT_3 . getResourceAsStream ( STRING_6 ) ) . thenReturn ( IDENT_2 ) ; org . xwiki . IDENT_4 . IDENT_5 IDENT_6 = this . IDENT_7 . getInstance ( org . xwiki . IDENT_4 . IDENT_5 . class ) ; org . xwiki . IDENT_4 . IDENT_8 IDENT_9 = mock ( org . xwiki . IDENT_4 . IDENT_8 . class ) ; when ( IDENT_6 . METHOD_3 ( ) ) . thenReturn ( IDENT_9 ) ; METHOD_4 ( new org . mockito . IDENT_10 . IDENT_11 < java . lang . IDENT_12 > ( ) { @ org . xwiki . IDENT_0 . Override public org . xwiki . IDENT_0 . IDENT_12 METHOD_5 ( org . mockito . IDENT_13 . IDENT_14 IDENT_13 ) { ( ( java . io . StringWriter ) ( IDENT_13 . METHOD_6 ( ) [ 1 ] ) ) . write ( STRING_7 ) ; return null ; } } ) . when ( IDENT_9 ) . evaluate ( any ( ) , any ( ) , eq ( STRING_8 ) , any ( java . io . IDENT_15 . class ) ) ; this . handler . METHOD_7 ( reference , this . IDENT_16 ) ; "<AssertPlaceHolder>" ; verify ( this . response ) . METHOD_8 ( STRING_9 ) ; verify ( this . response . METHOD_9 ( ) , METHOD_10 ( ) ) . METHOD_11 ( any ( ) , any ( ) ) ; verify ( this . response . METHOD_9 ( ) , METHOD_10 ( ) ) . METHOD_12 ( any ( ) , METHOD_13 ( ) ) ; } METHOD_14 ( ) { if ( ( this . IDENT_17 ) instanceof javax . IDENT_18 . IDENT_19 ) { return ( ( javax . IDENT_18 . IDENT_19 ) ( this . IDENT_17 ) ) . METHOD_15 ( ) ; } return null ; }
org . junit . Assert . assertEquals ( STRING_7 , this . response . METHOD_14 ( ) . toString ( ) )