METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_2 . METHOD_2 ( ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_2 . METHOD_3 ( com . cloud . IDENT_3 . vmware . resource . IDENT_4 . IDENT_5 ) ) . thenReturn ( IDENT_6 ) ; METHOD_4 ( com . cloud . IDENT_3 . vmware . IDENT_7 . IDENT_8 . class ) . METHOD_5 ( context , IDENT_1 ) . thenReturn ( IDENT_2 ) ; com . cloud . IDENT_3 . vmware . IDENT_7 . IDENT_9 result = IDENT_10 . METHOD_6 ( context , IDENT_0 , IDENT_11 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( com . cloud . IDENT_3 . vmware . util . IDENT_12 , com . cloud . IDENT_3 . vmware . IDENT_7 . IDENT_13 , com . cloud . IDENT_14 . api . to . IDENT_15 ) { com . cloud . IDENT_3 . vmware . IDENT_7 . IDENT_8 IDENT_16 = new com . cloud . IDENT_3 . vmware . IDENT_7 . METHOD_7 ( context , IDENT_0 . METHOD_1 ( ) ) ; if ( ( IDENT_16 . METHOD_2 ( ) ) == null ) { java . lang . String msg = STRING_0 ; com . cloud . IDENT_3 . vmware . resource . IDENT_17 . IDENT_18 . error ( msg ) ; throw new com . cloud . utils . exception . METHOD_8 ( msg ) ; } return IDENT_16 . METHOD_3 ( IDENT_19 . getPath ( ) ) ; }
org . junit . Assert . assertEquals ( IDENT_6 , result )