METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . internal . IDENT_3 driver = mock ( com . IDENT_0 . IDENT_1 . IDENT_2 . internal . IDENT_3 . class ) ; com . IDENT_0 . IDENT_1 . web . api . IDENT_4 IDENT_5 = new com . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_1 ( driver , new com . IDENT_0 . IDENT_1 . IDENT_2 . testing . IDENT_6 . METHOD_2 ( ) , new com . IDENT_0 . IDENT_1 . IDENT_2 . testing . IDENT_6 . METHOD_3 ( ) ) ; java . io . IDENT_7 IDENT_8 = mock ( java . io . IDENT_7 . class ) ; METHOD_4 ( new java . io . IOException ( ) ) . when ( IDENT_8 ) . close ( ) ; try { IDENT_5 . METHOD_5 ( IDENT_8 ) ; org . junit . Assert . fail ( STRING_0 ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } verify ( IDENT_8 ) . close ( ) ; } METHOD_5 ( java . io . IDENT_7 ) { try ( java . io . IDENT_7 stream = IDENT_8 ) { byte [ ] data = METHOD_6 ( ( ) -> driver . METHOD_7 ( IDENT_9 . IDENT_10 ) ) ; stream . write ( data ) ; stream . METHOD_8 ( ) ; } catch ( java . io . IOException e ) { throw new com . IDENT_0 . IDENT_1 . ui . METHOD_9 ( STRING_1 , e ) ; } }
org . junit . Assert . assertThat ( STRING_0 , e . getClass ( ) , org . hamcrest . Matchers . equalTo ( com . IDENT_0 . IDENT_1 . ui . METHOD_9 . class ) )