METHOD_0 ( ) { org . eclipse . IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = IDENT_4 . IDENT_5 . METHOD_1 ( ) ; final org . eclipse . xtext . IDENT_6 . IDENT_7 node = new org . eclipse . xtext . IDENT_6 . impl . METHOD_2 ( ) ; final org . eclipse . xtext . IDENT_8 . IDENT_9 expected = new org . eclipse . xtext . IDENT_8 . METHOD_3 ( STRING_0 , node , null ) ; org . eclipse . xtext . IDENT_10 . lib . IDENT_11 . IDENT_12 < java . lang . String , org . eclipse . xtext . IDENT_6 . IDENT_13 , java . lang . Object > IDENT_14 = new org . eclipse . xtext . IDENT_10 . lib . IDENT_11 . IDENT_12 < java . lang . String , org . eclipse . xtext . IDENT_6 . IDENT_13 , java . lang . Object > ( ) { @ org . eclipse . xtext . parser . Override public java . lang . Object apply ( java . lang . String IDENT_15 , org . eclipse . xtext . IDENT_6 . IDENT_13 IDENT_16 ) { if ( ( "foo" . equals ( IDENT_15 ) ) && ( node . equals ( IDENT_16 ) ) ) { throw expected ; } org . junit . Assert . fail ( ) ; return null ; } } ; org . eclipse . xtext . parser . IDENT_17 factory = new org . eclipse . xtext . parser . METHOD_4 ( ) ; factory . METHOD_5 ( new org . eclipse . xtext . parser . IDENT_18 . METHOD_6 ( IDENT_14 ) ) ; try { factory . set ( IDENT_3 , STRING_1 , null , "foo" , node ) ; org . junit . Assert . fail ( STRING_2 ) ; } catch ( org . eclipse . xtext . IDENT_8 . METHOD_3 ex ) { "<AssertPlaceHolder>" ; } } fail ( java . lang . String ) { throw new java . lang . METHOD_7 ( message ) ; }
org . junit . Assert . assertSame ( expected , ex )