METHOD_0 ( ) { net . IDENT_0 . core . business . streaming . IDENT_1 . device . IDENT_2 device = METHOD_1 ( net . IDENT_0 . core . business . streaming . IDENT_1 . device . IDENT_2 . class ) ; net . IDENT_0 . core . business . streaming . IDENT_1 . command . IDENT_3 command = METHOD_1 ( net . IDENT_0 . core . business . streaming . IDENT_1 . command . IDENT_3 . class ) ; java . net . IDENT_4 IDENT_5 = METHOD_1 ( java . net . IDENT_4 . class ) ; javax . net . IDENT_6 IDENT_7 = METHOD_1 ( javax . net . IDENT_6 . class ) ; java . io . IDENT_8 IDENT_9 = METHOD_1 ( java . io . IDENT_8 . class ) ; java . io . InputStream IDENT_10 = new java . io . ByteArrayInputStream ( STRING_0 . getBytes ( ) ) ; java . lang . String request = STRING_1 ; org . easymock . IDENT_11 < byte [ ] > IDENT_12 = METHOD_2 ( ) ; expect ( device . METHOD_3 ( METHOD_4 ( javax . net . IDENT_6 . class ) ) ) . andReturn ( IDENT_5 ) . METHOD_5 ( ) ; expect ( IDENT_5 . METHOD_6 ( ) ) . andReturn ( IDENT_9 ) . METHOD_5 ( ) ; expect ( IDENT_5 . METHOD_7 ( ) ) . andReturn ( IDENT_10 ) . METHOD_5 ( ) ; expect ( command . METHOD_8 ( ) ) . andReturn ( request ) . METHOD_5 ( ) ; IDENT_9 . write ( METHOD_9 ( IDENT_12 ) , eq ( 0 ) , eq ( request . length ( ) ) ) ; METHOD_10 ( ) . METHOD_5 ( ) ; IDENT_9 . METHOD_11 ( ) ; METHOD_10 ( ) . METHOD_5 ( ) ; replay ( device , command , IDENT_5 , IDENT_7 , IDENT_9 ) ; net . IDENT_0 . core . business . streaming . IDENT_1 . IDENT_13 . IDENT_14 IDENT_15 = new net . IDENT_0 . core . business . streaming . IDENT_1 . IDENT_13 . METHOD_12 ( IDENT_7 ) ; IDENT_15 . execute ( device , command ) ; "<AssertPlaceHolder>" ; verify ( device , command , IDENT_5 , IDENT_7 , IDENT_9 ) ; } getValue ( ) { return this . value ; }
org . junit . Assert . assertEquals ( request , new java . lang . String ( IDENT_12 . getValue ( ) , 0 , request . length ( ) ) )