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 = METHOD_1 ( org . apache . ambari . server . IDENT_1 . entities . IDENT_2 . class ) ; org . apache . ambari . server . IDENT_1 . entities . IDENT_4 IDENT_5 = METHOD_1 ( org . apache . ambari . server . IDENT_1 . entities . IDENT_4 . class ) ; org . apache . ambari . server . IDENT_1 . entities . IDENT_6 IDENT_7 = METHOD_1 ( org . apache . ambari . server . IDENT_1 . entities . IDENT_6 . class ) ; org . apache . ambari . server . IDENT_1 . entities . IDENT_8 IDENT_9 = METHOD_1 ( org . apache . ambari . server . IDENT_1 . entities . IDENT_8 . class ) ; java . util . Collection < org . apache . ambari . server . IDENT_1 . entities . IDENT_4 > IDENT_10 = new java . util . ArrayList ( ) ; IDENT_10 . add ( IDENT_5 ) ; expect ( IDENT_3 . METHOD_2 ( ) ) . andReturn ( IDENT_10 ) ; expect ( IDENT_5 . getResource ( ) ) . andReturn ( IDENT_7 ) ; expect ( IDENT_7 . getId ( ) ) . andReturn ( INT_0 ) . METHOD_3 ( ) ; expect ( IDENT_7 . METHOD_4 ( ) ) . andReturn ( IDENT_9 ) . METHOD_3 ( ) ; expect ( IDENT_9 . getId ( ) ) . andReturn ( IDENT_11 . IDENT_12 . getId ( ) ) . METHOD_3 ( ) ; expect ( IDENT_9 . getName ( ) ) . andReturn ( IDENT_11 . IDENT_12 . name ( ) ) . METHOD_3 ( ) ; replay ( IDENT_3 , IDENT_5 , IDENT_7 , IDENT_9 , org . apache . ambari . server . view . IDENT_13 . configuration ) ; org . springframework . security . core . context . IDENT_14 . METHOD_5 ( ) . METHOD_6 ( org . apache . ambari . server . security . IDENT_15 . METHOD_7 ( IDENT_7 . getId ( ) ) ) ; "<AssertPlaceHolder>" ; verify ( IDENT_3 , IDENT_5 , IDENT_7 , IDENT_9 , org . apache . ambari . server . view . IDENT_13 . configuration ) ; } METHOD_8 ( org . apache . ambari . server . IDENT_1 . entities . IDENT_2 ) { if ( METHOD_9 ( null , false ) ) { return true ; } for ( org . apache . ambari . server . IDENT_1 . entities . IDENT_4 IDENT_5 : IDENT_16 . METHOD_2 ( ) ) { if ( METHOD_9 ( IDENT_5 , true ) ) { return true ; } } return false ; }
org . junit . Assert . assertTrue ( registry . METHOD_8 ( IDENT_3 ) )