METHOD_0 ( ) { java . lang . String IDENT_0 = org . IDENT_1 . IDENT_2 . protocol . IDENT_3 . METHOD_1 ( STRING_0 . getBytes ( ) , 0 , 0 ) ; byte [ ] actual = org . IDENT_1 . IDENT_2 . protocol . IDENT_3 . METHOD_2 ( IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String ) { byte [ ] IDENT_4 = null ; boolean IDENT_5 = true ; boolean IDENT_6 = false ; boolean IDENT_7 = false ; int IDENT_8 ; int IDENT_9 ; java . nio . ByteBuffer result = java . nio . ByteBuffer . METHOD_3 ( name . length ( ) ) ; for ( int i = 0 ; ( i < ( name . length ( ) ) ) && ( ! IDENT_6 ) ; i ++ ) { char ch = name . charAt ( i ) ; switch ( ch ) { case STRING_1 : if ( ( ( name . length ( ) ) - 1 ) < ( i + 2 ) ) { throw new java . net . METHOD_4 ( name , STRING_2 , i ) ; } IDENT_8 = java . lang . IDENT_10 . METHOD_5 ( name . charAt ( ( ++ i ) ) , 16 ) ; IDENT_9 = java . lang . IDENT_10 . METHOD_5 ( name . charAt ( ( ++ i ) ) , 16 ) ; if ( ( IDENT_8 < 0 ) || ( IDENT_9 < 0 ) ) throw new java . net . METHOD_4 ( name , ( STRING_3 + ( name . substring ( ( i - 2 ) , ( i + 1 ) ) ) ) , ( i - 2 ) ) ; result . put ( ( ( byte ) ( ( IDENT_8 * 16 ) + IDENT_9 ) ) ) ; break ; case STRING_4 : case STRING_5 : case STRING_6 : IDENT_6 = true ; break ; case STRING_7 : if ( ( ( ( name . length ( ) ) - 1 ) < ( i + 2 ) ) || ( ( ( ( name . length ( ) ) - i ) & 1 ) == 0 ) ) { throw new java . net . METHOD_4 ( name , STRING_8 , i ) ; } IDENT_7 = true ; break ; case STRING_9 : case STRING_10 : case STRING_11 : case STRING_12 : case STRING_13 : case STRING_14 : case STRING_15 : case STRING_16 : case STRING_17 : case STRING_18 : case STRING_19 : case STRING_20 : case STRING_21 : case STRING_22 : result . put ( ( ( byte ) ( ch ) ) ) ; break ; default : if ( org . IDENT_1 . IDENT_2 . protocol . IDENT_3 . METHOD_6 ( ch ) ) throw new java . net . METHOD_4 ( name , STRING_23 , i ) ; if ( IDENT_7 ) { IDENT_8 = java . lang . IDENT_10 . METHOD_5 ( ch , 16 ) ; IDENT_9 = java . lang . IDENT_10 . METHOD_5 ( name . charAt ( ( ++ i ) ) , 16 ) ; if ( ( IDENT_8 < 0 ) || ( IDENT_9 < 0 ) ) throw new java . net . METHOD_4 ( name , ( STRING_24 + ( name . substring ( ( i - 1 ) , i ) ) ) , ( i - 1 ) ) ; result . put ( ( ( byte ) ( ( IDENT_8 * 16 ) + IDENT_9 ) ) ) ; } else { result . put ( ( ( byte ) ( ch ) ) ) ; } break ; } if ( ( ( ! IDENT_6 ) && ( ( result . position ( ) ) > 0 ) ) && ( ( result . get ( ( ( result . position ( ) ) - 1 ) ) ) != STRING_25 ) ) { IDENT_5 = false ; } } result . METHOD_7 ( ) ; if ( IDENT_5 ) { if ( ( result . METHOD_8 ( ) ) <= 1 ) { return null ; } else if ( ( result . METHOD_8 ( ) ) == 2 ) { throw new org . IDENT_1 . IDENT_2 . protocol . IDENT_3 . METHOD_9 ( ) ; } else { result . METHOD_8 ( ( ( result . METHOD_8 ( ) ) - 3 ) ) ; } } IDENT_4 = new byte [ result . METHOD_8 ( ) ] ; java . lang . System . METHOD_10 ( result . array ( ) , 0 , IDENT_4 , 0 , result . METHOD_8 ( ) ) ; return IDENT_4 ; }
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( STRING_0 . getBytes ( ) , actual ) )