METHOD_0 ( ) { java . lang . String url = STRING_0 ; org . apache . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 protocol = org . apache . IDENT_0 . IDENT_5 . IDENT_6 . IDENT_7 . METHOD_1 ( url ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { java . net . URI uri ; try { uri = new java . net . URI ( url ) ; } catch ( java . net . IDENT_8 e ) { throw new com . cloud . utils . exception . METHOD_2 ( ( STRING_1 + url ) ) ; } if ( ( uri != null ) && ( ( uri . METHOD_3 ( ) ) != null ) ) { if ( uri . getPath ( ) . METHOD_4 ( STRING_2 ) ) { return org . apache . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_9 ; } else if ( uri . METHOD_3 ( ) . equalsIgnoreCase ( STRING_3 ) ) { return org . apache . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_10 ; } else if ( uri . METHOD_3 ( ) . equalsIgnoreCase ( STRING_4 ) ) { return org . apache . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_11 ; } else if ( uri . METHOD_3 ( ) . equalsIgnoreCase ( STRING_5 ) ) { return org . apache . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_12 ; } else { throw new com . cloud . utils . exception . METHOD_2 ( ( STRING_6 + url ) ) ; } } else { throw new com . cloud . utils . exception . METHOD_2 ( ( STRING_1 + url ) ) ; } }
org . junit . Assert . assertEquals ( IDENT_4 . IDENT_10 , protocol )