METHOD_0 ( ) { IDENT_0 . IDENT_1 . core . route . IDENT_2 IDENT_3 = mock ( IDENT_0 . IDENT_1 . core . route . IDENT_2 . class ) ; when ( IDENT_4 . METHOD_1 ( any ( IDENT_0 . IDENT_1 . core . route . IDENT_2 . class ) ) ) . thenReturn ( IDENT_0 . IDENT_1 . core . IDENT_5 . IDENT_6 ) ; IDENT_7 . init ( IDENT_8 ) ; java . lang . String IDENT_9 = IDENT_7 . METHOD_1 ( IDENT_3 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_4 , times ( 1 ) ) . METHOD_1 ( eq ( IDENT_3 ) ) ; verify ( IDENT_8 , times ( 1 ) ) . METHOD_2 ( ) ; } METHOD_1 ( java . lang . String ) { if ( ! ( IDENT_0 . IDENT_1 . core . util . StringUtils . METHOD_3 ( IDENT_9 ) ) ) { java . lang . String [ ] IDENT_10 = IDENT_9 . toLowerCase ( ) . split ( STRING_0 ) ; for ( java . lang . String lang : IDENT_10 ) { if ( lang . contains ( STRING_1 ) ) { lang = lang . split ( STRING_1 ) [ 0 ] ; } if ( METHOD_4 ( lang ) ) { return lang ; } } } return IDENT_11 ; }
org . junit . Assert . assertThat ( IDENT_9 , org . hamcrest . core . Is . is ( IDENT_0 . IDENT_1 . core . IDENT_5 . IDENT_6 ) )