METHOD_0 ( ) { java . lang . Throwable IDENT_0 = mock ( org . pentaho . platform . web . http . api . resources . RuntimeException . class ) ; METHOD_1 ( IDENT_0 ) . when ( IDENT_1 . IDENT_2 ) . METHOD_2 ( org . pentaho . platform . web . http . api . resources . IDENT_3 . IDENT_4 , org . pentaho . platform . web . http . api . resources . IDENT_3 . IDENT_5 ) ; java . lang . String msg = STRING_0 ; doReturn ( msg ) . when ( IDENT_0 ) . getMessage ( ) ; javax . ws . rs . core . Response IDENT_6 = mock ( javax . ws . rs . core . Response . class ) ; doReturn ( IDENT_6 ) . when ( IDENT_1 ) . METHOD_3 ( msg ) ; javax . ws . rs . core . Response IDENT_7 = IDENT_1 . METHOD_2 ( org . pentaho . platform . web . http . api . resources . IDENT_3 . IDENT_4 , org . pentaho . platform . web . http . api . resources . IDENT_3 . IDENT_5 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_1 . IDENT_2 , times ( 1 ) ) . METHOD_2 ( org . pentaho . platform . web . http . api . resources . IDENT_3 . IDENT_4 , org . pentaho . platform . web . http . api . resources . IDENT_3 . IDENT_5 ) ; verify ( IDENT_0 , times ( 1 ) ) . getMessage ( ) ; verify ( IDENT_1 , times ( 1 ) ) . METHOD_3 ( msg ) ; } METHOD_2 ( java . lang . String , java . lang . String ) { org . pentaho . platform . api . IDENT_8 . IDENT_9 . IDENT_10 repository = METHOD_4 ( ) ; org . pentaho . platform . api . IDENT_8 . IDENT_9 . IDENT_11 IDENT_12 = repository . METHOD_5 ( org . pentaho . platform . web . http . api . resources . utils . IDENT_13 . METHOD_6 ( IDENT_14 ) ) ; java . lang . StringBuilder buf = new java . lang . StringBuilder ( IDENT_12 . getPath ( ) . length ( ) ) ; buf . append ( METHOD_7 ( IDENT_12 . getPath ( ) ) ) ; buf . append ( IDENT_11 . IDENT_15 ) ; buf . append ( IDENT_16 ) ; if ( ! ( IDENT_12 . METHOD_8 ( ) ) ) { java . lang . String extension = METHOD_9 ( IDENT_12 . getName ( ) ) ; if ( extension != null ) { buf . append ( extension ) ; } } if ( ( repository . METHOD_5 ( buf . toString ( ) ) ) != null ) { throw new java . lang . IllegalArgumentException ( org . pentaho . platform . IDENT_8 . messages . IDENT_17 . getInstance ( ) . getString ( STRING_1 ) ) ; } repository . METHOD_10 ( IDENT_12 . getId ( ) , buf . toString ( ) , STRING_2 ) ; org . pentaho . platform . api . IDENT_8 . IDENT_9 . IDENT_11 IDENT_18 = repository . METHOD_11 ( IDENT_12 . getId ( ) ) ; if ( IDENT_18 != null ) { if ( ! ( IDENT_18 . METHOD_8 ( ) ) ) { java . util . Map < java . lang . String , java . util . Properties > IDENT_19 = IDENT_18 . METHOD_12 ( ) ; if ( IDENT_19 == null ) { IDENT_19 = new java . util . HashMap < java . lang . String , java . util . Properties > ( ) ; java . util . Properties properties = new java . util . Properties ( ) ; properties . setProperty ( STRING_3 , IDENT_16 ) ; properties . setProperty ( STRING_4 , IDENT_16 ) ; IDENT_19 . put ( STRING_5 , properties ) ; } else { for ( Map . Entry < java . lang . String , java . util . Properties > entry : IDENT_19 . entrySet ( ) ) { java . util . Properties properties = entry . getValue ( ) ; if ( properties . containsKey ( STRING_3 ) ) { properties . setProperty ( STRING_3 , IDENT_16 ) ; } if ( properties . containsKey ( STRING_4 ) ) { properties . setProperty ( STRING_4 , IDENT_16 ) ; } } } org . pentaho . platform . api . IDENT_8 . IDENT_9 . IDENT_11 IDENT_20 = new org . pentaho . platform . api . IDENT_8 . IDENT_9 . IDENT_11 . Builder ( IDENT_18 ) . METHOD_13 ( METHOD_13 ) . name ( IDENT_16 ) . METHOD_14 ( IDENT_16 ) . build ( ) ; repository . METHOD_15 ( IDENT_20 , org . pentaho . platform . web . http . api . resources . utils . IDENT_21 . METHOD_16 ( IDENT_18 ) , STRING_6 ) ; } return true ; } else { return false ; } }
org . junit . Assert . assertEquals ( IDENT_6 , IDENT_7 )