METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( IDENT_0 ) ; when ( item . METHOD_2 ( ) ) . thenReturn ( null ) ; when ( item . METHOD_3 ( ) ) . thenReturn ( new org . eclipse . IDENT_2 . core . library . types . METHOD_4 ( STRING_1 ) ) ; java . lang . String IDENT_3 = org . eclipse . IDENT_2 . ui . internal . IDENT_4 . IDENT_5 . IDENT_6 . METHOD_1 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( org . eclipse . IDENT_2 . model . IDENT_7 . IDENT_8 ) { java . lang . String IDENT_3 = METHOD_5 ( IDENT_9 ) ; java . lang . String IDENT_10 = IDENT_9 . METHOD_6 ( ) ; if ( org . apache . commons . lang . StringUtils . METHOD_7 ( IDENT_10 ) ) { return transform ( IDENT_3 , null ) ; } java . lang . String IDENT_11 = null ; org . eclipse . IDENT_2 . core . types . IDENT_12 state = null ; org . eclipse . IDENT_2 . core . types . IDENT_13 IDENT_14 = null ; java . lang . String IDENT_15 = METHOD_8 ( IDENT_3 ) ; try { final org . eclipse . IDENT_2 . core . IDENT_4 . IDENT_16 item = METHOD_6 ( IDENT_10 ) ; IDENT_14 = item . METHOD_2 ( ) ; if ( ( ( IDENT_15 == null ) && ( IDENT_14 != null ) ) && ( ( IDENT_14 . METHOD_9 ( ) ) != null ) ) { IDENT_3 = ( ( IDENT_3 + STRING_2 ) + ( IDENT_14 . METHOD_9 ( ) ) ) + "]" ; } java . lang . String IDENT_17 = METHOD_8 ( IDENT_3 ) ; if ( IDENT_17 != null ) { IDENT_15 = IDENT_17 ; state = item . METHOD_3 ( ) ; if ( IDENT_15 . contains ( STRING_3 ) ) { if ( ! ( state instanceof java . lang . IDENT_18 ) ) { state = item . METHOD_10 ( org . eclipse . IDENT_2 . core . library . types . IDENT_19 . class ) ; } IDENT_15 = IDENT_15 . replaceAll ( STRING_4 , STRING_5 ) ; } } } catch ( org . eclipse . IDENT_2 . core . IDENT_4 . IDENT_20 e ) { logger . error ( STRING_6 , IDENT_9 . METHOD_11 ( ) . METHOD_12 ( ) ) ; } if ( IDENT_15 != null ) { if ( IDENT_15 . isEmpty ( ) ) { IDENT_3 = IDENT_3 . substring ( 0 , IDENT_3 . indexOf ( STRING_7 ) ) . trim ( ) ; } else { if ( ( state == null ) || ( state instanceof org . eclipse . IDENT_2 . core . types . IDENT_21 ) ) { IDENT_15 = METHOD_13 ( IDENT_15 ) ; } else if ( state instanceof org . eclipse . IDENT_2 . core . types . Type ) { if ( ( IDENT_14 != null ) && ( ( IDENT_14 . METHOD_14 ( ) ) != null ) ) { for ( org . eclipse . IDENT_2 . core . types . IDENT_22 IDENT_23 : IDENT_14 . METHOD_14 ( ) ) { if ( ( IDENT_23 . getValue ( ) . equals ( state . toString ( ) ) ) && ( ( IDENT_23 . METHOD_1 ( ) ) != null ) ) { org . eclipse . IDENT_2 . core . types . IDENT_12 IDENT_24 = new org . eclipse . IDENT_2 . core . library . types . METHOD_4 ( IDENT_23 . METHOD_1 ( ) ) ; try { java . lang . String IDENT_25 = IDENT_24 . format ( IDENT_15 ) ; IDENT_11 = IDENT_3 . trim ( ) ; IDENT_11 = ( ( IDENT_11 . substring ( 0 , ( ( IDENT_11 . indexOf ( STRING_7 ) ) + 1 ) ) ) + IDENT_25 ) + "]" ; } catch ( java . lang . IllegalArgumentException e ) { logger . debug ( STRING_6 0 , IDENT_24 , IDENT_10 , IDENT_15 , e . getMessage ( ) ) ; IDENT_11 = null ; } break ; } } } if ( state instanceof org . eclipse . IDENT_2 . core . library . types . IDENT_26 ) { org . eclipse . IDENT_2 . core . library . types . IDENT_26 < ? > IDENT_27 = ( ( org . eclipse . IDENT_2 . core . library . types . IDENT_26 < ? > ) ( state ) ) ; javax . IDENT_28 . IDENT_29 < ? > IDENT_30 = org . eclipse . IDENT_2 . core . types . util . IDENT_31 . METHOD_15 ( IDENT_15 ) ; if ( ( IDENT_30 != null ) && ( ! ( IDENT_27 . METHOD_16 ( ) . equals ( IDENT_30 ) ) ) ) { IDENT_27 = IDENT_27 . METHOD_17 ( IDENT_30 ) ; } IDENT_27 = METHOD_18 ( IDENT_27 , IDENT_9 ) ; state = IDENT_27 ; } try { IDENT_15 = METHOD_19 ( IDENT_15 , state ) ; } catch ( java . lang . IllegalArgumentException e ) { logger . warn ( STRING_8 , state , IDENT_10 , IDENT_15 , e . getMessage ( ) ) ; IDENT_15 = new java . lang . String ( STRING_9 ) ; } } IDENT_3 = IDENT_3 . trim ( ) ; IDENT_3 = ( ( IDENT_3 . substring ( 0 , ( ( IDENT_3 . indexOf ( STRING_7 ) ) + 1 ) ) ) + IDENT_15 ) + "]" ; } } return transform ( IDENT_3 , IDENT_11 ) ; }
org . junit . Assert . assertEquals ( STRING_0 , IDENT_3 )