METHOD_0 ( ) { org . apache . ambari . server . view . IDENT_0 registry = org . apache . ambari . server . view . IDENT_0 . getInstance ( ) ; org . apache . ambari . server . IDENT_1 . entities . IDENT_2 IDENT_3 = org . apache . ambari . server . IDENT_1 . entities . IDENT_4 . METHOD_1 ( ) ; IDENT_3 . METHOD_2 ( "foo" , "value" ) ; org . apache . ambari . server . IDENT_1 . entities . IDENT_5 IDENT_6 = IDENT_3 . METHOD_3 ( "foo" ) ; org . apache . ambari . server . view . IDENT_7 . IDENT_8 . METHOD_4 ( IDENT_6 ) ; expect ( org . apache . ambari . server . view . IDENT_7 . IDENT_8 . METHOD_5 ( IDENT_3 ) ) . andReturn ( IDENT_3 ) ; replay ( org . apache . ambari . server . view . IDENT_7 . IDENT_9 , org . apache . ambari . server . view . IDENT_7 . IDENT_8 , org . apache . ambari . server . view . IDENT_7 . IDENT_10 ) ; registry . METHOD_6 ( IDENT_3 , "foo" ) ; "<AssertPlaceHolder>" ; verify ( org . apache . ambari . server . view . IDENT_7 . IDENT_9 , org . apache . ambari . server . view . IDENT_7 . IDENT_8 , org . apache . ambari . server . view . IDENT_7 . IDENT_10 ) ; } METHOD_3 ( java . lang . String ) { java . lang . String user = METHOD_7 ( ) ; for ( org . apache . ambari . server . IDENT_1 . entities . IDENT_5 IDENT_11 : data ) { if ( ( IDENT_11 . getName ( ) . equals ( key ) ) && ( IDENT_11 . METHOD_8 ( ) . equals ( user ) ) ) { return IDENT_11 ; } } return null ; }
org . junit . Assert . assertNull ( IDENT_3 . METHOD_3 ( "foo" ) )