METHOD_0 ( ) { java . lang . RuntimeException expected = mock ( org . IDENT_0 . IDENT_1 . config . RuntimeException . class ) ; java . lang . reflect . IDENT_2 e = mock ( java . lang . reflect . IDENT_2 . class ) ; METHOD_1 ( org . IDENT_0 . IDENT_1 . util . IDENT_3 . class ) ; when ( org . IDENT_0 . IDENT_1 . util . IDENT_3 . METHOD_2 ( java . lang . String . class , IDENT_4 ) ) . METHOD_3 ( e ) ; METHOD_1 ( org . IDENT_0 . IDENT_1 . IDENT_5 . class ) ; when ( org . IDENT_0 . IDENT_1 . IDENT_5 . METHOD_4 ( ( ( java . lang . Exception ) ( e ) ) ) ) . thenReturn ( expected ) ; try { IDENT_6 . METHOD_2 ( java . lang . String . class ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . Exception IDENT_7 ) { "<AssertPlaceHolder>" ; } } METHOD_2 ( java . lang . Class ) { if ( clazz == null ) { return null ; } else { try { return org . IDENT_0 . IDENT_1 . util . IDENT_3 . METHOD_2 ( clazz , IDENT_8 ) ; } catch ( java . lang . Exception e ) { throw org . IDENT_0 . IDENT_1 . IDENT_5 . METHOD_4 ( e ) ; } } }
org . junit . Assert . assertSame ( expected , IDENT_7 )