METHOD_0 ( ) { IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . service . IDENT_4 . IDENT_5 IDENT_6 = new IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . service . IDENT_4 . METHOD_1 ( ) ; byte [ ] data = STRING_0 . getBytes ( ) ; javax . servlet . http . IDENT_7 IDENT_8 = org . easymock . EasyMock . METHOD_2 ( javax . servlet . http . IDENT_7 . class ) ; javax . security . IDENT_9 . IDENT_10 IDENT_11 = new test . unit . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . service . IDENT_4 . IDENT_12 . METHOD_3 ( IDENT_8 ) ; javax . security . IDENT_9 . IDENT_13 . METHOD_4 ( test . unit . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . service . IDENT_4 . IDENT_12 . METHOD_3 . IDENT_14 , IDENT_11 , false ) ; javax . servlet . http . IDENT_15 IDENT_16 = org . easymock . EasyMock . METHOD_2 ( javax . servlet . http . IDENT_15 . class ) ; org . easymock . EasyMock . expect ( IDENT_8 . METHOD_5 ( ) ) . METHOD_6 ( IDENT_16 ) ; final org . easymock . IDENT_17 < java . io . IDENT_18 > IDENT_19 = new org . easymock . IDENT_17 < java . io . IDENT_18 > ( ) ; IDENT_16 . METHOD_7 ( org . easymock . EasyMock . eq ( METHOD_1 . IDENT_20 ) , org . easymock . EasyMock . METHOD_8 ( IDENT_19 ) ) ; org . easymock . EasyMock . expect ( IDENT_16 . METHOD_9 ( METHOD_1 . IDENT_20 ) ) . METHOD_10 ( new org . easymock . IDENT_21 < java . io . IDENT_18 > ( ) { public java . io . IDENT_18 METHOD_11 ( ) throws java . lang . Throwable { return IDENT_19 . getValue ( ) ; } } ) ; org . easymock . EasyMock . replay ( IDENT_8 , IDENT_16 ) ; java . io . IDENT_18 IDENT_22 = IDENT_6 . METHOD_12 ( ) ; org . apache . commons . io . IDENT_23 . write ( data , IDENT_22 ) ; java . io . InputStream IDENT_24 = IDENT_6 . METHOD_13 ( ) ; byte [ ] IDENT_25 = org . apache . commons . io . IDENT_23 . toByteArray ( IDENT_24 ) ; org . easymock . EasyMock . verify ( IDENT_8 , IDENT_16 ) ; "<AssertPlaceHolder>" ; } METHOD_13 ( ) { byte [ ] data = this . IDENT_22 . toByteArray ( ) ; java . io . ByteArrayInputStream IDENT_24 = new java . io . ByteArrayInputStream ( data ) ; return IDENT_24 ; }
org . junit . Assert . assertArrayEquals ( data , IDENT_25 )