METHOD_0 ( ) { javax . ws . rs . core . IDENT_0 IDENT_1 = mock ( javax . ws . rs . core . IDENT_0 . class ) ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; byte [ ] IDENT_2 = STRING_0 . getBytes ( ) ; METHOD_1 ( ( IDENT_3 ) -> { out . write ( IDENT_2 ) ; return null ; } ) . when ( IDENT_1 ) . write ( out ) ; IDENT_4 . METHOD_2 ( IDENT_1 , java . lang . String . class , null , null , null , new javax . ws . rs . core . METHOD_3 ( ) , out ) ; "<AssertPlaceHolder>" ; } toByteArray ( ) { byte [ ] IDENT_5 = new byte [ count ] ; java . lang . System . METHOD_4 ( buf , 0 , IDENT_5 , 0 , count ) ; return IDENT_5 ; }
org . junit . Assert . assertArrayEquals ( IDENT_2 , out . toByteArray ( ) )