METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( java . util . Arrays . asList ( org . eclipse . IDENT_1 . IDENT_2 . ext . runner . client . util . IDENT_3 . IDENT_4 ) ) ; when ( IDENT_5 . getType ( ) ) . thenReturn ( org . eclipse . IDENT_1 . IDENT_2 . ext . runner . client . util . IDENT_3 . IDENT_4 ) ; when ( IDENT_6 . METHOD_2 ( org . eclipse . IDENT_1 . IDENT_2 . ext . runner . client . util . IDENT_3 . IDENT_4 ) ) . thenReturn ( IDENT_0 ) ; when ( IDENT_7 . METHOD_3 ( ) ) . thenReturn ( null ) ; java . lang . String type = util . getType ( ) ; "<AssertPlaceHolder>" ; } getType ( ) { org . eclipse . IDENT_1 . IDENT_2 . api . app . IDENT_8 IDENT_7 = IDENT_9 . METHOD_4 ( ) ; if ( IDENT_7 == null ) { return "" ; } org . eclipse . IDENT_1 . api . project . shared . dto . IDENT_10 IDENT_5 = IDENT_7 . METHOD_5 ( ) ; java . lang . String IDENT_11 = IDENT_7 . METHOD_3 ( ) ; if ( ( IDENT_11 == null ) || ( IDENT_11 . startsWith ( org . eclipse . IDENT_1 . IDENT_2 . ext . runner . client . util . IDENT_12 ) ) ) { org . eclipse . IDENT_1 . api . project . shared . dto . IDENT_13 IDENT_0 = IDENT_6 . METHOD_2 ( IDENT_5 . getType ( ) ) ; java . util . List < java . lang . String > IDENT_14 = IDENT_0 . METHOD_1 ( ) ; if ( ( IDENT_14 == null ) || ( IDENT_14 . isEmpty ( ) ) ) { return IDENT_15 ; } return IDENT_14 . get ( 0 ) ; } else { return METHOD_6 ( IDENT_11 ) ; } }
org . junit . Assert . assertThat ( type , org . hamcrest . CoreMatchers . equalTo ( org . eclipse . IDENT_1 . IDENT_2 . ext . runner . client . util . IDENT_3 . IDENT_4 ) )