METHOD_0 ( ) { final org . springframework . web . IDENT_0 . IDENT_1 IDENT_2 = new org . springframework . mock . web . METHOD_1 ( STRING_0 , STRING_1 , STRING_2 , "foo" . getBytes ( ) ) { @ com . IDENT_3 . IDENT_4 . IDENT_5 . find . IDENT_6 . IDENT_7 . Override public void METHOD_2 ( final java . io . File IDENT_8 ) throws com . IDENT_3 . IDENT_4 . IDENT_5 . find . IDENT_6 . IDENT_7 . IllegalStateException , java . io . IOException { throw new java . io . IOException ( STRING_3 ) ; } } ; try { IDENT_9 . METHOD_3 ( com . IDENT_3 . IDENT_4 . IDENT_5 . find . IDENT_6 . IDENT_7 . IDENT_10 . IDENT_11 , IDENT_2 , false ) ; org . junit . Assert . fail ( STRING_4 ) ; } catch ( final com . IDENT_3 . IDENT_4 . IDENT_5 . find . IDENT_6 . IDENT_7 . IDENT_12 e ) { "<AssertPlaceHolder>" ; } } METHOD_3 ( com . IDENT_3 . IDENT_4 . IDENT_5 . find . IDENT_6 . IDENT_7 . IDENT_13 , org . springframework . web . IDENT_0 . IDENT_1 , boolean ) { METHOD_4 ( IDENT_14 ) ; final java . io . File IDENT_15 = METHOD_5 ( IDENT_14 , file . METHOD_6 ( ) ) ; if ( ( ! IDENT_16 ) && ( IDENT_15 . exists ( ) ) ) { throw new com . IDENT_3 . IDENT_4 . IDENT_5 . find . IDENT_6 . IDENT_7 . METHOD_7 ( Status . IDENT_17 , STRING_5 ) ; } try { file . METHOD_2 ( IDENT_15 ) ; } catch ( final java . io . IOException e ) { log . error ( STRING_6 , e ) ; throw new com . IDENT_3 . IDENT_4 . IDENT_5 . find . IDENT_6 . IDENT_7 . METHOD_7 ( Status . IDENT_18 , STRING_7 ) ; } }
org . junit . Assert . assertThat ( e . getStatus ( ) , org . hamcrest . core . Is . is ( Status . IDENT_18 ) )