METHOD_0 ( ) { final com . sun . jersey . api . core . IDENT_0 request = mock ( com . sun . jersey . api . core . IDENT_0 . class ) ; when ( request . METHOD_1 ( ) ) . METHOD_2 ( new javax . ws . rs . METHOD_3 ( INT_0 ) ) ; final com . sun . jersey . api . core . IDENT_1 context = mock ( com . sun . jersey . api . core . IDENT_1 . class ) ; when ( context . METHOD_4 ( ) ) . thenReturn ( request ) ; "<AssertPlaceHolder>" ; } getValue ( com . sun . jersey . api . core . IDENT_1 ) { java . util . List < java . util . Locale > IDENT_2 ; try { IDENT_2 = c . METHOD_4 ( ) . METHOD_1 ( ) ; } catch ( javax . ws . rs . METHOD_3 e ) { IDENT_2 = com . google . common . collect . ImmutableList . of ( ) ; } if ( ! ( IDENT_2 . isEmpty ( ) ) ) { final java . util . Locale IDENT_3 = IDENT_2 . get ( 0 ) ; if ( ! ( IDENT_3 . equals ( com . IDENT_4 . api . IDENT_5 . IDENT_6 . IDENT_7 . IDENT_8 ) ) ) { return IDENT_3 ; } } return java . util . Locale . METHOD_5 ( ) ; }
org . junit . Assert . assertThat ( provider . getValue ( context ) , org . hamcrest . CoreMatchers . is ( java . util . Locale . METHOD_5 ( ) ) )