METHOD_0 ( ) { org . jboss . netty . channel . IDENT_0 client = new org . jboss . netty . channel . METHOD_1 ( ) ; org . jboss . netty . channel . METHOD_1 IDENT_1 = METHOD_2 ( client ) ; IDENT_2 . METHOD_3 ( pipeline ( IDENT_1 ) ) ; org . kaazing . IDENT_3 . driver . internal . netty . channel . IDENT_4 IDENT_5 = METHOD_4 ( ) ; org . kaazing . IDENT_3 . driver . internal . netty . channel . IDENT_6 IDENT_7 = IDENT_5 . METHOD_5 ( java . net . URI . create ( STRING_0 ) ) ; java . lang . String message ; try ( java . net . IDENT_8 server = new java . net . METHOD_6 ( INT_0 ) ) { java . util . concurrent . IDENT_9 < java . lang . String > IDENT_10 = executor . METHOD_7 ( new java . util . concurrent . IDENT_11 < java . lang . String > ( ) { @ org . kaazing . IDENT_3 . driver . internal . netty . IDENT_2 . IDENT_12 . Override public java . lang . String call ( ) throws org . kaazing . IDENT_3 . driver . internal . netty . IDENT_2 . IDENT_12 . Exception { java . net . IDENT_13 child = server . accept ( ) ; java . io . IDENT_14 input = new java . io . METHOD_8 ( child . METHOD_9 ( ) ) ; byte [ ] buf = new byte [ 12 ] ; input . METHOD_10 ( buf ) ; child . METHOD_11 ( ) ; java . io . IDENT_15 output = child . METHOD_12 ( ) ; output . write ( buf ) ; child . METHOD_13 ( ) ; child . close ( ) ; return new java . lang . String ( buf , UTF_8 ) ; } } ) ; org . jboss . netty . channel . IDENT_16 channel = IDENT_2 . connect ( IDENT_7 ) . METHOD_14 ( ) . METHOD_15 ( ) ; channel . write ( METHOD_16 ( STRING_1 , org . kaazing . IDENT_3 . driver . internal . netty . IDENT_2 . IDENT_12 . UTF_8 ) ) ; channel . METHOD_17 ( ) . METHOD_14 ( ) ; do { java . lang . Thread . sleep ( 1L ) ; } while ( ( message = IDENT_10 . get ( ) ) == null ) ; } "<AssertPlaceHolder>" ; verify ( IDENT_1 , times ( 8 ) ) . METHOD_18 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_18 . class ) ) ; verify ( IDENT_1 , times ( 2 ) ) . METHOD_19 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_18 . class ) ) ; org . mockito . IDENT_19 IDENT_20 = METHOD_20 ( IDENT_1 ) ; IDENT_20 . verify ( IDENT_1 ) . METHOD_21 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_21 . class ) ) ; IDENT_20 . verify ( IDENT_1 ) . METHOD_22 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_21 . class ) ) ; IDENT_20 . verify ( IDENT_1 ) . METHOD_23 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_21 . class ) ) ; IDENT_20 . verify ( IDENT_1 ) . METHOD_24 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_21 . class ) ) ; org . mockito . IDENT_19 IDENT_22 = METHOD_20 ( IDENT_1 ) ; IDENT_22 . verify ( IDENT_1 ) . METHOD_25 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_23 . class ) ) ; IDENT_22 . verify ( IDENT_1 ) . METHOD_26 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_24 . class ) ) ; IDENT_22 . verify ( IDENT_1 ) . METHOD_27 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_23 . class ) ) ; org . mockito . IDENT_19 IDENT_25 = METHOD_20 ( IDENT_1 ) ; IDENT_25 . verify ( IDENT_1 ) . METHOD_28 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_21 . class ) ) ; IDENT_25 . verify ( IDENT_1 ) . METHOD_29 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_21 . class ) ) ; IDENT_25 . verify ( IDENT_1 ) . METHOD_30 ( any ( org . jboss . netty . channel . IDENT_17 . class ) , any ( org . jboss . netty . channel . IDENT_21 . class ) ) ; METHOD_31 ( IDENT_1 ) ; } METHOD_15 ( ) { return channel ; }
org . junit . Assert . assertEquals ( STRING_1 , message )