METHOD_0 ( ) { java . util . List < org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 > metadata = mock ( java . util . List . class ) ; METHOD_1 ( ) . when ( IDENT_4 . IDENT_5 ) . METHOD_2 ( org . pentaho . platform . web . http . api . resources . IDENT_6 . IDENT_7 , metadata ) ; javax . ws . rs . core . Response IDENT_8 = mock ( javax . ws . rs . core . Response . class ) ; doReturn ( IDENT_8 ) . when ( IDENT_4 ) . METHOD_3 ( ) ; javax . ws . rs . core . Response IDENT_9 = IDENT_4 . METHOD_2 ( org . pentaho . platform . web . http . api . resources . IDENT_6 . IDENT_7 , metadata ) ; "<AssertPlaceHolder>" ; verify ( IDENT_4 . IDENT_5 , times ( 1 ) ) . METHOD_2 ( org . pentaho . platform . web . http . api . resources . IDENT_6 . IDENT_7 , metadata ) ; verify ( IDENT_4 , times ( 1 ) ) . METHOD_3 ( ) ; } METHOD_2 ( java . lang . String , java . util . List ) { org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_10 file = METHOD_4 ( ) . METHOD_5 ( METHOD_6 ( IDENT_11 ) ) ; org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_12 IDENT_13 = METHOD_4 ( ) . METHOD_7 ( file . getId ( ) ) ; boolean IDENT_14 = ( METHOD_8 ( ) . getName ( ) . equals ( IDENT_13 . METHOD_9 ( ) ) ) || ( ( ( METHOD_10 ( ) . METHOD_11 ( IDENT_15 . IDENT_16 ) ) && ( METHOD_10 ( ) . METHOD_11 ( IDENT_17 . IDENT_16 ) ) ) && ( METHOD_10 ( ) . METHOD_11 ( IDENT_18 . IDENT_16 ) ) ) ; if ( ! IDENT_14 ) { if ( IDENT_13 . METHOD_12 ( ) ) { java . util . List < org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_19 > IDENT_20 = METHOD_4 ( ) . METHOD_13 ( file . getId ( ) ) ; IDENT_13 . METHOD_14 ( IDENT_20 , IDENT_13 . METHOD_12 ( ) ) ; } for ( int i = 0 ; i < ( IDENT_13 . METHOD_15 ( ) . size ( ) ) ; i ++ ) { org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_19 IDENT_21 = IDENT_13 . METHOD_15 ( ) . get ( i ) ; if ( IDENT_21 . METHOD_16 ( ) . equals ( METHOD_8 ( ) . getName ( ) ) ) { if ( ( IDENT_21 . METHOD_17 ( ) . contains ( IDENT_22 . IDENT_23 . METHOD_18 ( ) ) ) || ( IDENT_21 . METHOD_17 ( ) . contains ( IDENT_22 . IDENT_24 . METHOD_18 ( ) ) ) ) { IDENT_14 = true ; break ; } } } } if ( IDENT_14 ) { java . util . Map < java . lang . String , java . io . IDENT_25 > IDENT_26 = METHOD_19 ( ) . METHOD_20 ( file . getId ( ) ) ; boolean IDENT_27 = org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_28 . IDENT_29 ; boolean IDENT_30 = org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_28 . IDENT_31 ; IDENT_26 . remove ( IDENT_28 . IDENT_32 ) ; for ( org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 IDENT_33 : metadata ) { java . lang . String key = IDENT_33 . getKey ( ) ; if ( IDENT_28 . IDENT_32 . equalsIgnoreCase ( key ) ) { IDENT_27 = org . apache . commons . lang . IDENT_34 . METHOD_21 ( IDENT_33 . getValue ( ) ) ; continue ; } if ( IDENT_28 . IDENT_35 . equalsIgnoreCase ( key ) ) { IDENT_30 = org . apache . commons . lang . IDENT_34 . METHOD_21 ( IDENT_33 . getValue ( ) ) ; } IDENT_26 . put ( key , IDENT_33 . getValue ( ) ) ; } if ( ! ( file . METHOD_22 ( ) ) ) { METHOD_19 ( ) . METHOD_23 ( file . getId ( ) , IDENT_26 ) ; } if ( ( file . METHOD_24 ( ) ) != METHOD_24 ) { file . METHOD_25 ( METHOD_24 ) ; file . METHOD_26 ( ( ! IDENT_30 ) ) ; org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_28 IDENT_36 = METHOD_19 ( ) . METHOD_27 ( file . getId ( ) ) ; org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_10 IDENT_37 = METHOD_28 ( IDENT_36 , null , false ) ; IDENT_37 . METHOD_25 ( METHOD_24 ) ; IDENT_37 . METHOD_26 ( ( ! IDENT_30 ) ) ; org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_28 IDENT_38 = METHOD_29 ( IDENT_37 ) ; org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_39 IDENT_21 = METHOD_19 ( ) . METHOD_7 ( IDENT_36 . getId ( ) ) ; if ( ! ( file . METHOD_22 ( ) ) ) { org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_40 data = org . pentaho . platform . web . http . api . resources . utils . IDENT_41 . METHOD_30 ( IDENT_36 ) ; METHOD_19 ( ) . METHOD_31 ( IDENT_38 , data , null ) ; METHOD_19 ( ) . METHOD_32 ( IDENT_21 ) ; } else { METHOD_19 ( ) . METHOD_33 ( IDENT_38 , null ) ; } } } else { throw new java . security . METHOD_34 ( ) ; } }
org . junit . Assert . assertEquals ( IDENT_8 , IDENT_9 )