METHOD_0 ( ) { final java . io . InputStream IDENT_0 = org . mockito . Mockito . mock ( java . io . InputStream . class ) ; final org . apache . hc . core5 . http . IDENT_1 entity = org . mockito . Mockito . mock ( org . apache . hc . core5 . http . IDENT_1 . class ) ; org . mockito . Mockito . when ( entity . METHOD_1 ( ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( entity . METHOD_2 ( ) ) . thenReturn ( IDENT_0 ) ; final org . apache . hc . core5 . http . IDENT_2 response = org . mockito . Mockito . mock ( org . apache . hc . core5 . http . IDENT_2 . class ) ; org . mockito . Mockito . when ( response . getCode ( ) ) . thenReturn ( INT_0 ) ; org . mockito . Mockito . when ( response . METHOD_3 ( ) ) . thenReturn ( entity ) ; final org . apache . hc . IDENT_3 . http . impl . IDENT_4 . IDENT_5 handler = new org . apache . hc . IDENT_3 . http . impl . IDENT_4 . METHOD_4 ( ) ; try { handler . METHOD_5 ( response ) ; org . junit . Assert . fail ( STRING_0 ) ; } catch ( final org . apache . hc . IDENT_3 . http . IDENT_6 ex ) { "<AssertPlaceHolder>" ; } org . mockito . Mockito . verify ( entity ) . METHOD_2 ( ) ; org . mockito . Mockito . verify ( IDENT_0 ) . close ( ) ; } getStatusCode ( ) { return this . IDENT_7 ; }
org . junit . Assert . assertEquals ( INT_0 , ex . getStatusCode ( ) )