METHOD_0 ( ) { java . io . File file = IDENT_0 . METHOD_1 ( org . IDENT_1 . IDENT_2 . IDENT_3 . controller . IDENT_4 . IDENT_5 ) ; org . springframework . web . IDENT_6 . IDENT_7 IDENT_8 = mock ( org . springframework . web . IDENT_6 . IDENT_7 . class ) ; when ( IDENT_8 . METHOD_2 ( ) ) . thenReturn ( file . getName ( ) ) ; org . springframework . http . IDENT_9 < ? > result = IDENT_10 . METHOD_3 ( IDENT_8 ) ; "<AssertPlaceHolder>" ; METHOD_4 ( IDENT_8 ) ; } METHOD_3 ( org . springframework . web . IDENT_6 . IDENT_7 ) { return org . IDENT_1 . IDENT_2 . IDENT_3 . controller . IDENT_11 . METHOD_5 ( ( ) -> { java . lang . String IDENT_12 = file . METHOD_2 ( ) ; java . nio . file . Path IDENT_13 = java . nio . file . IDENT_14 . get ( IDENT_15 . METHOD_6 ( ) . getAbsolutePath ( ) , IDENT_12 ) ; if ( java . nio . file . IDENT_16 . exists ( IDENT_13 ) ) { java . lang . String IDENT_17 = STRING_0 ; return METHOD_7 ( IDENT_12 , IDENT_17 , IDENT_18 . IDENT_19 ) ; } java . lang . String IDENT_20 = file . METHOD_8 ( ) ; if ( IDENT_20 == null ) { java . lang . String IDENT_17 = STRING_1 ; return METHOD_7 ( IDENT_12 , IDENT_17 , IDENT_18 . IDENT_21 ) ; } if ( ! ( org . IDENT_1 . IDENT_2 . IDENT_3 . controller . IDENT_11 . IDENT_22 . contains ( IDENT_20 . toLowerCase ( ) ) ) ) { java . lang . String IDENT_17 = STRING_2 ; return METHOD_7 ( IDENT_12 , IDENT_17 , IDENT_18 . IDENT_21 ) ; } if ( ! ( IDENT_12 . toLowerCase ( ) . METHOD_9 ( STRING_3 ) ) ) { java . lang . String IDENT_17 = STRING_4 ; return METHOD_7 ( IDENT_12 , IDENT_17 , IDENT_18 . IDENT_21 ) ; } try { file . METHOD_10 ( IDENT_13 . METHOD_11 ( ) ) ; IDENT_23 . METHOD_12 ( IDENT_13 ) ; return org . springframework . http . IDENT_9 . METHOD_13 ( java . util . Collections . METHOD_14 ( STRING_5 , ( IDENT_12 + STRING_6 ) ) ) ; } catch ( ex ) { java . lang . String IDENT_17 = STRING_7 ; return METHOD_7 ( IDENT_12 , IDENT_17 , IDENT_18 . IDENT_24 , org . IDENT_1 . IDENT_2 . IDENT_3 . controller . ex ) ; } } ) ; }
org . junit . Assert . assertEquals ( IDENT_18 . IDENT_19 , result . getStatusCode ( ) )