METHOD_0 ( ) { com . amazonaws . services . IDENT_0 . model . IDENT_1 IDENT_2 = mock ( com . amazonaws . services . IDENT_0 . model . IDENT_1 . class ) ; com . amazonaws . services . IDENT_0 . model . IDENT_3 IDENT_4 = mock ( com . amazonaws . services . IDENT_0 . model . IDENT_3 . class ) ; when ( IDENT_5 . METHOD_1 ( METHOD_2 ( com . amazonaws . services . IDENT_0 . model . IDENT_6 . class ) ) ) . thenReturn ( IDENT_2 ) ; when ( IDENT_5 . METHOD_3 ( METHOD_2 ( com . amazonaws . services . IDENT_0 . model . IDENT_7 . class ) ) ) . thenReturn ( IDENT_4 ) ; com . google . crypto . IDENT_8 . IDENT_9 IDENT_10 = new com . google . crypto . IDENT_8 . integration . IDENT_11 . METHOD_4 ( IDENT_5 , com . google . crypto . IDENT_8 . integration . IDENT_11 . IDENT_12 . IDENT_13 ) ; byte [ ] IDENT_14 = com . google . crypto . IDENT_8 . IDENT_15 . IDENT_16 . METHOD_5 ( 20 ) ; for ( int IDENT_17 = 0 ; IDENT_17 < INT_0 ; IDENT_17 ++ ) { byte [ ] message = com . google . crypto . IDENT_8 . IDENT_15 . IDENT_16 . METHOD_5 ( IDENT_17 ) ; when ( IDENT_2 . METHOD_6 ( ) ) . thenReturn ( com . google . crypto . IDENT_8 . integration . IDENT_11 . IDENT_12 . IDENT_13 ) ; when ( IDENT_2 . METHOD_7 ( ) ) . thenReturn ( java . nio . ByteBuffer . METHOD_8 ( message ) ) ; when ( IDENT_4 . METHOD_9 ( ) ) . thenReturn ( java . nio . ByteBuffer . METHOD_8 ( message ) ) ; byte [ ] IDENT_18 = IDENT_10 . METHOD_3 ( message , IDENT_14 ) ; byte [ ] IDENT_19 = IDENT_10 . METHOD_1 ( IDENT_18 , IDENT_14 ) ; "<AssertPlaceHolder>" ; } } METHOD_1 ( byte [ ] , byte [ ] ) { try { java . nio . ByteBuffer buffer = java . nio . ByteBuffer . METHOD_8 ( IDENT_18 ) ; int IDENT_20 = buffer . METHOD_10 ( ) ; if ( ( IDENT_20 <= 0 ) || ( IDENT_20 > ( ( IDENT_18 . length ) - ( com . google . crypto . IDENT_8 . IDENT_10 . IDENT_21 . IDENT_22 ) ) ) ) { throw new java . security . METHOD_11 ( STRING_0 ) ; } byte [ ] IDENT_23 = new byte [ IDENT_20 ] ; buffer . get ( IDENT_23 , 0 , IDENT_20 ) ; byte [ ] payload = new byte [ buffer . METHOD_12 ( ) ] ; buffer . get ( payload , 0 , buffer . METHOD_12 ( ) ) ; byte [ ] IDENT_24 = remote . METHOD_1 ( IDENT_23 , com . google . crypto . IDENT_8 . IDENT_10 . IDENT_21 . IDENT_25 ) ; com . google . crypto . IDENT_8 . IDENT_9 IDENT_10 = com . google . crypto . IDENT_8 . IDENT_26 . METHOD_13 ( IDENT_27 . METHOD_14 ( ) , IDENT_24 , com . google . crypto . IDENT_8 . IDENT_9 . class ) ; return IDENT_10 . METHOD_1 ( payload , IDENT_28 ) ; } catch ( java . lang . IDENT_29 | java . nio . IDENT_30 | java . lang . IDENT_31 e ) { throw new java . security . METHOD_11 ( STRING_0 , e ) ; } }
org . junit . Assert . assertArrayEquals ( message , IDENT_19 )