METHOD_0 ( ) { IDENT_0 = mock ( com . baeldung . easymock . IDENT_1 . class ) ; IDENT_2 = new com . baeldung . easymock . METHOD_1 ( IDENT_0 ) ; expect ( IDENT_0 . write ( STRING_0 , STRING_1 ) ) . METHOD_2 ( new java . lang . IllegalArgumentException ( ) ) ; replay ( IDENT_0 ) ; java . lang . Exception IDENT_3 = null ; try { IDENT_2 . write ( STRING_0 , STRING_1 ) ; } catch ( java . lang . Exception exception ) { IDENT_3 = exception ; } verify ( IDENT_0 ) ; "<AssertPlaceHolder>" ; } verify ( io . IDENT_4 . security . IDENT_5 . IDENT_6 ) { return IDENT_7 ; }
org . junit . Assert . assertEquals ( com . baeldung . easymock . IllegalArgumentException . class , IDENT_3 . getClass ( ) )