METHOD_0 ( ) { com . eclipsesource . IDENT_0 . internal . ui . IDENT_1 IDENT_2 = METHOD_1 ( mock ( com . eclipsesource . IDENT_0 . ui . IDENT_3 . class ) ) ; com . eclipsesource . IDENT_0 . internal . ui . IDENT_4 IDENT_5 = mock ( com . eclipsesource . IDENT_0 . internal . ui . IDENT_4 . class ) ; com . eclipsesource . IDENT_0 . internal . ui . IDENT_6 controller = mock ( com . eclipsesource . IDENT_0 . internal . ui . IDENT_6 . class ) ; java . util . List < com . eclipsesource . IDENT_0 . internal . ui . IDENT_7 . IDENT_8 > IDENT_9 = new java . util . ArrayList < com . eclipsesource . IDENT_0 . internal . ui . IDENT_7 . IDENT_8 > ( ) ; IDENT_9 . add ( IDENT_5 ) ; when ( controller . METHOD_2 ( ) ) . thenReturn ( IDENT_9 ) ; IDENT_2 . METHOD_3 ( controller ) ; com . eclipsesource . IDENT_0 . internal . ui . IDENT_10 IDENT_11 = mock ( com . eclipsesource . IDENT_0 . internal . ui . IDENT_10 . class ) ; when ( IDENT_11 . getId ( ) ) . thenReturn ( "bar" ) ; when ( IDENT_5 . METHOD_4 ( ) ) . thenReturn ( IDENT_11 ) ; when ( IDENT_5 . getId ( ) ) . thenReturn ( "foo" ) ; java . lang . String IDENT_12 = IDENT_2 . METHOD_5 ( "foo" ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . String ) { java . util . List < com . eclipsesource . IDENT_0 . internal . ui . IDENT_7 . IDENT_8 > IDENT_13 = controller . METHOD_2 ( ) ; for ( com . eclipsesource . IDENT_0 . internal . ui . IDENT_7 . IDENT_8 IDENT_14 : IDENT_13 ) { com . eclipsesource . IDENT_0 . internal . ui . IDENT_4 IDENT_5 = ( ( com . eclipsesource . IDENT_0 . internal . ui . IDENT_4 ) ( IDENT_14 ) ) ; if ( IDENT_5 . getId ( ) . equals ( IDENT_15 ) ) { return IDENT_5 . METHOD_4 ( ) . getId ( ) ; } } throw new java . lang . IllegalStateException ( ( ( STRING_0 + IDENT_15 ) + STRING_1 ) ) ; }
org . junit . Assert . assertEquals ( "bar" , IDENT_12 )