METHOD_0 ( ) { IDENT_0 = org . easymock . EasyMock . METHOD_1 ( com . alibaba . dubbo . IDENT_1 . IDENT_2 . class ) ; org . easymock . EasyMock . expect ( IDENT_0 . METHOD_2 ( STRING_0 ) ) . andReturn ( STRING_1 ) . METHOD_3 ( ) ; org . easymock . EasyMock . replay ( IDENT_0 ) ; java . lang . String result = com . alibaba . dubbo . IDENT_3 . protocol . dubbo . IDENT_4 . IDENT_5 . count . METHOD_4 ( IDENT_0 , "" ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( com . alibaba . dubbo . IDENT_1 . IDENT_2 , java . lang . String ) { java . lang . StringBuilder buf = new java . lang . StringBuilder ( ) ; java . lang . String service = null ; boolean IDENT_6 = false ; if ( ( message . length ( ) ) > 0 ) { java . lang . String [ ] IDENT_7 = message . split ( STRING_2 ) ; for ( java . lang . String IDENT_8 : IDENT_7 ) { if ( STRING_3 . equals ( IDENT_8 ) ) { IDENT_6 = true ; } else { if ( ( service != null ) && ( ( service . length ( ) ) > 0 ) ) { return STRING_4 + IDENT_8 ; } service = IDENT_8 ; } } } else { service = ( ( java . lang . String ) ( channel . METHOD_2 ( IDENT_9 . IDENT_10 ) ) ) ; if ( ( service != null ) && ( ( service . length ( ) ) > 0 ) ) { buf . append ( ( ( STRING_5 + service ) + STRING_6 ) ) ; } } if ( ( service == null ) || ( ( service . length ( ) ) == 0 ) ) { for ( com . alibaba . dubbo . IDENT_3 . IDENT_11 < ? > IDENT_12 : com . alibaba . dubbo . IDENT_3 . protocol . dubbo . IDENT_13 . METHOD_5 ( ) . METHOD_6 ( ) ) { if ( ( buf . length ( ) ) > 0 ) { buf . append ( STRING_7 ) ; } buf . append ( IDENT_12 . METHOD_7 ( ) . METHOD_8 ( ) . getName ( ) ) ; if ( IDENT_6 ) { buf . append ( STRING_8 ) ; buf . append ( IDENT_12 . METHOD_7 ( ) . METHOD_9 ( ) ) ; } } } else { com . alibaba . dubbo . IDENT_3 . IDENT_14 < ? > IDENT_15 = null ; for ( com . alibaba . dubbo . IDENT_3 . IDENT_11 < ? > IDENT_12 : com . alibaba . dubbo . IDENT_3 . protocol . dubbo . IDENT_13 . METHOD_5 ( ) . METHOD_6 ( ) ) { if ( ( ( service . equals ( IDENT_12 . METHOD_7 ( ) . METHOD_8 ( ) . METHOD_10 ( ) ) ) || ( service . equals ( IDENT_12 . METHOD_7 ( ) . METHOD_8 ( ) . getName ( ) ) ) ) || ( service . equals ( IDENT_12 . METHOD_7 ( ) . METHOD_9 ( ) . getPath ( ) ) ) ) { IDENT_15 = IDENT_12 . METHOD_7 ( ) ; break ; } } if ( IDENT_15 != null ) { java . lang . reflect . Method [ ] methods = IDENT_15 . METHOD_8 ( ) . METHOD_11 ( ) ; for ( java . lang . reflect . Method method : methods ) { if ( ( buf . length ( ) ) > 0 ) { buf . append ( STRING_7 ) ; } if ( IDENT_6 ) { buf . append ( com . alibaba . dubbo . common . utils . IDENT_16 . getName ( method ) ) ; } else { buf . append ( method . getName ( ) ) ; } } } else { buf . append ( ( STRING_9 + service ) ) ; } } return buf . toString ( ) ; }
org . junit . Assert . assertEquals ( STRING_1 , result )