METHOD_0 ( ) { javax . servlet . http . IDENT_0 session = METHOD_1 ( javax . servlet . http . IDENT_0 . class ) ; org . apache . ambari . server . controller . IDENT_1 IDENT_2 = METHOD_2 ( org . apache . ambari . server . controller . IDENT_1 . class ) . METHOD_3 ( STRING_0 ) . METHOD_4 ( ) ; expect ( IDENT_2 . METHOD_5 ( ) ) . andReturn ( session ) ; expect ( session . METHOD_6 ( "foo" ) ) . andReturn ( "bar" ) ; replay ( session , IDENT_2 ) ; "<AssertPlaceHolder>" ; verify ( session , IDENT_2 ) ; } METHOD_6 ( java . lang . String ) { javax . servlet . http . IDENT_0 session = METHOD_5 ( ) ; if ( session != null ) { return session . METHOD_6 ( name ) ; } return null ; }
org . junit . Assert . assertEquals ( "bar" , IDENT_2 . METHOD_6 ( "foo" ) )