METHOD_0 ( ) { com . amazon . IDENT_0 . request . exception . handler . IDENT_1 < com . amazon . IDENT_0 . sdk . IDENT_2 , com . amazon . IDENT_0 . sdk . IDENT_3 > IDENT_4 = mock ( com . amazon . IDENT_0 . request . exception . handler . IDENT_1 . class ) ; when ( IDENT_4 . METHOD_1 ( any ( ) , any ( ) ) ) . thenReturn ( true ) ; when ( IDENT_4 . METHOD_2 ( any ( ) , any ( ) ) ) . thenReturn ( new com . amazon . IDENT_0 . sdk . METHOD_3 ( ) ) ; com . amazon . IDENT_0 . request . exception . handler . IDENT_1 < com . amazon . IDENT_0 . sdk . IDENT_2 , com . amazon . IDENT_0 . sdk . METHOD_3 > IDENT_5 = mock ( com . amazon . IDENT_0 . request . exception . handler . IDENT_1 . class ) ; when ( IDENT_5 . METHOD_1 ( any ( ) , any ( ) ) ) . thenReturn ( true ) ; when ( IDENT_5 . METHOD_2 ( any ( ) , any ( ) ) ) . thenReturn ( new com . amazon . IDENT_0 . sdk . METHOD_3 ( ) ) ; com . amazon . IDENT_0 . request . exception . mapper . IDENT_6 < com . amazon . IDENT_0 . sdk . IDENT_2 , com . amazon . IDENT_0 . sdk . METHOD_3 > IDENT_7 = com . amazon . IDENT_0 . request . exception . mapper . impl . IDENT_8 . METHOD_4 ( com . amazon . IDENT_0 . sdk . IDENT_2 . class , com . amazon . IDENT_0 . sdk . METHOD_3 . class ) . METHOD_5 ( IDENT_4 ) . METHOD_5 ( IDENT_5 ) . build ( ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( IDENT_9 , java . lang . Throwable ) { java . lang . Throwable exception = ( ex instanceof java . lang . IDENT_10 ) ? ex . METHOD_7 ( ) : ex ; for ( com . amazon . IDENT_0 . request . exception . handler . IDENT_1 < IDENT_9 , IDENT_11 > IDENT_12 : IDENT_13 ) { if ( IDENT_12 . METHOD_1 ( input , exception ) ) { return java . util . Optional . of ( IDENT_12 ) ; } } return java . util . Optional . empty ( ) ; }
org . junit . Assert . assertEquals ( IDENT_7 . METHOD_6 ( new com . amazon . IDENT_0 . sdk . METHOD_8 ( ) , new java . lang . IllegalArgumentException ( ) ) . get ( ) , IDENT_4 )