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