METHOD_0 ( ) { logger . info ( STRING_0 ) ; java . lang . String domain = STRING_1 ; java . util . Map < com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 , java . lang . String > expResult = new java . util . HashMap ( ) ; expResult . put ( IDENT_2 . IDENT_3 . IDENT_4 , STRING_2 ) ; expResult . put ( IDENT_2 . IDENT_3 . IDENT_5 , STRING_3 ) ; expResult . put ( IDENT_2 . IDENT_3 . IDENT_6 , null ) ; java . util . Map < com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 , java . lang . String > result = com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . METHOD_1 ( domain ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { com . IDENT_0 . framework . core . common . text . IDENT_1 . Map < com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 , java . lang . String > IDENT_7 = null ; java . lang . String [ ] IDENT_8 = domain . trim ( ) . toLowerCase ( Locale . IDENT_9 ) . split ( STRING_4 ) ; if ( ( IDENT_8 . length ) == 2 ) { IDENT_7 = new com . IDENT_0 . framework . core . common . text . IDENT_1 . HashMap ( ) ; IDENT_7 . put ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_6 , null ) ; IDENT_7 . put ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_5 , IDENT_8 [ 0 ] ) ; IDENT_7 . put ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 , IDENT_8 [ 1 ] ) ; } else if ( ( IDENT_8 . length ) > 2 ) { int n = IDENT_8 . length ; if ( ( ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_10 . contains ( ( ( ( IDENT_8 [ ( n - 2 ) ] ) + STRING_5 ) + ( IDENT_8 [ ( n - 1 ) ] ) ) ) ) || ( ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_10 . contains ( IDENT_8 [ ( n - 1 ) ] ) ) && ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_11 . contains ( IDENT_8 [ ( n - 2 ) ] ) ) ) ) || ( ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_10 . contains ( IDENT_8 [ ( n - 2 ) ] ) ) && ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_11 . contains ( IDENT_8 [ ( n - 1 ) ] ) ) ) ) { IDENT_7 = new com . IDENT_0 . framework . core . common . text . IDENT_1 . HashMap ( ) ; IDENT_7 . put ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 , ( ( ( IDENT_8 [ ( n - 2 ) ] ) + STRING_5 ) + ( IDENT_8 [ ( n - 1 ) ] ) ) ) ; IDENT_7 . put ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_5 , IDENT_8 [ ( n - 3 ) ] ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( IDENT_8 [ 0 ] ) ; for ( int i = 1 ; i < ( n - 3 ) ; ++ i ) { sb . append ( STRING_5 ) . append ( IDENT_8 [ i ] ) ; } IDENT_7 . put ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_6 , sb . toString ( ) ) ; } else if ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_10 . contains ( IDENT_8 [ ( n - 1 ) ] ) ) { IDENT_7 = new com . IDENT_0 . framework . core . common . text . IDENT_1 . HashMap ( ) ; IDENT_7 . put ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 , IDENT_8 [ ( n - 1 ) ] ) ; IDENT_7 . put ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_5 , IDENT_8 [ ( n - 2 ) ] ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( IDENT_8 [ 0 ] ) ; for ( int i = 1 ; i < ( n - 2 ) ; ++ i ) { sb . append ( STRING_5 ) . append ( IDENT_8 [ i ] ) ; } IDENT_7 . put ( com . IDENT_0 . framework . core . common . text . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_6 , sb . toString ( ) ) ; } } return IDENT_7 ; }
org . junit . Assert . assertEquals ( expResult , result )