METHOD_0 ( ) { java . util . Map < java . lang . String , java . lang . Object > attributes = new java . util . HashMap ( ) ; attributes . put ( "foo" , "bar" ) ; org . apache . ambari . server . state . IDENT_0 cluster = METHOD_1 ( org . apache . ambari . server . state . IDENT_0 . class ) ; org . apache . ambari . server . state . cluster . IDENT_1 IDENT_2 = METHOD_2 ( org . apache . ambari . server . state . cluster . IDENT_1 . class ) . METHOD_3 ( STRING_0 , java . lang . String . class ) . METHOD_1 ( ) ; expect ( IDENT_2 . METHOD_4 ( STRING_1 ) ) . andReturn ( cluster ) ; expect ( cluster . METHOD_5 ( ) ) . andReturn ( attributes ) ; replay ( IDENT_2 , cluster ) ; "<AssertPlaceHolder>" ; verify ( IDENT_2 , cluster ) ; } METHOD_5 ( java . util . Map ) { java . util . Map < java . lang . String , java . lang . Object > IDENT_3 = new java . util . HashMap ( ) ; for ( Map . Entry < java . lang . String , java . lang . Object > entry : properties . entrySet ( ) ) { java . lang . String property = entry . getKey ( ) ; if ( property . startsWith ( org . apache . ambari . server . controller . internal . IDENT_4 . IDENT_5 ) ) { java . lang . String IDENT_6 = property . substring ( org . apache . ambari . server . controller . internal . IDENT_4 . IDENT_5 . length ( ) ) ; IDENT_3 . put ( IDENT_6 , entry . getValue ( ) ) ; } } return IDENT_3 ; }
org . junit . Assert . assertEquals ( attributes , IDENT_2 . METHOD_5 ( STRING_1 ) )