METHOD_0 ( ) { final java . util . Collection < java . lang . Throwable > IDENT_0 = new java . util . ArrayList ( ) ; when ( IDENT_1 . METHOD_1 ( any ( org . IDENT_2 . kernel . api . IDENT_3 . class ) , any ( java . io . File . class ) ) ) . thenReturn ( IDENT_0 ) ; boolean IDENT_4 = false ; try { IDENT_5 . METHOD_2 ( null ) ; org . junit . Assert . fail ( STRING_0 ) ; } catch ( final javax . ws . rs . IDENT_6 e ) { IDENT_4 = true ; } "<AssertPlaceHolder>" ; } METHOD_2 ( java . io . InputStream ) { if ( null == IDENT_7 ) { throw new javax . ws . rs . METHOD_3 ( METHOD_4 ( ) . entity ( STRING_1 ) . build ( ) ) ; } final java . lang . String body = org . apache . commons . io . IDENT_8 . toString ( IDENT_7 ) ; final java . io . File IDENT_9 = new java . io . File ( body . trim ( ) ) ; if ( ! ( IDENT_9 . exists ( ) ) ) { throw new javax . ws . rs . METHOD_3 ( METHOD_4 ( ) . entity ( ( STRING_2 + ( IDENT_9 . getAbsolutePath ( ) ) ) ) . build ( ) ) ; } final java . util . Collection < java . lang . Throwable > IDENT_0 = IDENT_10 . METHOD_5 ( session . METHOD_6 ( ) , IDENT_9 ) ; if ( ! ( IDENT_0 . isEmpty ( ) ) ) { org . IDENT_2 . http . api . repository . IDENT_11 . LOGGER . error ( STRING_3 ) ; final java . lang . String IDENT_12 = IDENT_0 . stream ( ) . map ( Throwable :: getMessage ) . METHOD_7 ( org . IDENT_2 . http . api . repository . IDENT_11 . LOGGER :: error ) . collect ( java . util . stream . IDENT_13 . METHOD_8 ( "\n" ) ) ; throw new javax . ws . rs . METHOD_3 ( METHOD_4 ( ) . entity ( IDENT_12 ) . build ( ) ) ; } return METHOD_9 ( ) . header ( STRING_4 , STRING_5 ) . build ( ) ; }
org . junit . Assert . assertTrue ( IDENT_4 )