METHOD_0 ( ) { org . easymock . EasyMock . METHOD_1 ( IDENT_0 ) ; org . easymock . EasyMock . expect ( IDENT_0 . METHOD_2 ( ) ) . andReturn ( IDENT_1 . IDENT_2 ) ; org . easymock . IDENT_3 < com . amazonaws . services . IDENT_4 . model . IDENT_5 > IDENT_6 = new org . easymock . IDENT_3 < com . amazonaws . services . IDENT_4 . model . IDENT_5 > ( ) ; org . easymock . EasyMock . expect ( IDENT_0 . METHOD_3 ( org . easymock . EasyMock . METHOD_4 ( IDENT_6 ) ) ) . andReturn ( null ) ; org . easymock . EasyMock . replay ( IDENT_0 ) ; mapper . METHOD_5 ( ) . METHOD_6 ( IDENT_0 ) ; com . amazonaws . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_10 IDENT_11 = mapper . METHOD_7 ( IDENT_12 , key ) ; IDENT_11 . METHOD_8 ( STRING_0 . getBytes ( StringUtils . IDENT_13 ) ) ; java . io . ByteArrayOutputStream IDENT_14 = new java . io . ByteArrayOutputStream ( ) ; java . io . InputStream is = IDENT_6 . getValue ( ) . METHOD_9 ( ) ; int IDENT_15 = - 1 ; while ( ( IDENT_15 = is . read ( ) ) != ( - 1 ) ) { IDENT_14 . write ( IDENT_15 ) ; } "<AssertPlaceHolder>" ; org . easymock . EasyMock . verify ( ) ; } write ( byte [ ] ) { if ( ( b . length ) == 0 ) { return ; } METHOD_10 ( ) . write ( b ) ; IDENT_16 += b . length ; IDENT_17 += b . length ; }
org . junit . Assert . assertArrayEquals ( IDENT_14 . toByteArray ( ) , STRING_0 . getBytes ( StringUtils . IDENT_13 ) )