METHOD_0 ( ) { final org . openqa . selenium . IDENT_0 IDENT_1 = mock ( org . openqa . selenium . IDENT_0 . class ) ; final java . lang . StringBuilder log = new java . lang . StringBuilder ( ) ; final org . openqa . selenium . IDENT_2 exception = new org . openqa . selenium . METHOD_1 ( STRING_0 ) ; when ( IDENT_1 . METHOD_2 ( org . openqa . selenium . IDENT_3 . id ( "foo" ) ) ) . METHOD_3 ( exception ) ; org . openqa . selenium . support . events . IDENT_4 IDENT_5 = new org . openqa . selenium . support . events . METHOD_4 ( IDENT_1 ) . METHOD_5 ( new org . openqa . selenium . support . events . METHOD_6 ( ) { @ org . openqa . selenium . support . events . Override public void METHOD_7 ( java . lang . Throwable IDENT_6 , org . openqa . selenium . IDENT_0 driver ) { log . append ( IDENT_6 . getMessage ( ) ) ; } } ) ; try { IDENT_5 . METHOD_2 ( org . openqa . selenium . IDENT_3 . id ( "foo" ) ) ; org . junit . Assert . fail ( STRING_1 ) ; } catch ( org . openqa . selenium . METHOD_1 e ) { } "<AssertPlaceHolder>" ; } getMessage ( ) { return message ; }
org . junit . Assert . assertEquals ( exception . getMessage ( ) , log . toString ( ) )