METHOD_0 ( ) { org . apache . ambari . server . state . IDENT_0 cluster = METHOD_1 ( org . apache . ambari . server . state . IDENT_0 . class ) ; org . apache . ambari . server . state . IDENT_1 config = METHOD_1 ( org . apache . ambari . server . state . IDENT_1 . class ) ; java . util . Map < java . lang . String , java . lang . String > properties = new java . util . HashMap ( ) ; properties . put ( "foo" , "bar" ) ; expect ( cluster . METHOD_2 ( STRING_0 ) ) . andReturn ( config ) . METHOD_3 ( ) ; expect ( config . METHOD_4 ( ) ) . andReturn ( properties ) . METHOD_3 ( ) ; replay ( cluster , config ) ; org . apache . ambari . server . view . IDENT_2 IDENT_3 = new org . apache . ambari . server . view . METHOD_5 ( cluster ) ; "<AssertPlaceHolder>" ; verify ( cluster , config ) ; } METHOD_6 ( java . lang . String , java . lang . String ) { org . apache . ambari . server . state . IDENT_1 config = cluster . METHOD_2 ( type ) ; return config == null ? null : config . METHOD_4 ( ) . get ( key ) ; }
org . junit . Assert . assertEquals ( "bar" , IDENT_3 . METHOD_6 ( STRING_0 , "foo" ) )