METHOD_0 ( ) { org . eclipse . rap . rwt . client . service . IDENT_0 IDENT_1 = mock ( org . eclipse . rap . rwt . client . service . IDENT_0 . class ) ; when ( IDENT_1 . METHOD_1 ( "foo" ) ) . thenReturn ( "bar" ) ; METHOD_2 ( org . eclipse . rap . rwt . client . service . IDENT_0 . class , IDENT_1 ) ; org . eclipse . rap . rwt . application . IDENT_2 IDENT_3 = new org . eclipse . rap . rwt . application . METHOD_3 ( ) { @ org . eclipse . rap . rwt . application . Override MOD_0 void METHOD_4 ( org . eclipse . swt . widgets . IDENT_4 parent ) { } } ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { org . eclipse . rap . rwt . client . service . IDENT_0 service = org . eclipse . rap . rwt . IDENT_5 . METHOD_5 ( ) . METHOD_6 ( org . eclipse . rap . rwt . client . service . IDENT_0 . class ) ; return service == null ? null : service . METHOD_1 ( name ) ; }
org . junit . Assert . assertEquals ( "bar" , IDENT_3 . METHOD_1 ( "foo" ) )