METHOD_0 ( ) { final java . net . URL url = new java . net . URL ( STRING_0 ) ; final java . lang . String expected = STRING_1 ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . net . URL ) { java . lang . String IDENT_0 = url . getPath ( ) ; if ( IDENT_0 . startsWith ( STRING_2 ) ) { IDENT_0 = IDENT_0 . substring ( 4 ) ; } if ( IDENT_0 . startsWith ( STRING_3 ) ) { IDENT_0 = IDENT_0 . substring ( 5 ) ; } final int IDENT_1 = IDENT_0 . indexOf ( STRING_4 ) ; if ( IDENT_1 > 0 ) { IDENT_0 = IDENT_0 . substring ( 0 , IDENT_1 ) ; } final java . lang . String protocol = url . METHOD_2 ( ) ; final java . util . List < java . lang . String > IDENT_2 = java . util . Arrays . asList ( org . apache . logging . log4j . core . config . plugins . util . IDENT_3 . IDENT_4 , org . apache . logging . log4j . core . config . plugins . util . IDENT_3 . IDENT_5 , org . apache . logging . log4j . core . config . plugins . util . IDENT_3 . IDENT_6 ) ; if ( IDENT_2 . contains ( protocol ) ) { return IDENT_0 ; } final java . lang . String IDENT_7 = new java . net . URI ( IDENT_0 ) . getPath ( ) ; if ( new java . io . File ( IDENT_7 ) . exists ( ) ) { return IDENT_7 ; } return java . net . IDENT_8 . decode ( IDENT_0 , IDENT_9 . UTF_8 . name ( ) ) ; }
org . junit . Assert . assertEquals ( expected , new org . apache . logging . log4j . core . config . plugins . util . METHOD_3 ( ) . METHOD_1 ( url ) )