METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = new org . IDENT_0 . IDENT_1 . METHOD_1 ( ) ; org . IDENT_0 . IDENT_1 . IDENT_4 request = new org . IDENT_0 . IDENT_1 . METHOD_2 ( IDENT_3 ) ; request . METHOD_3 ( ) . METHOD_4 ( IDENT_5 . IDENT_6 , Locale . IDENT_7 ) ; org . IDENT_0 . controller . IDENT_8 IDENT_9 = new org . IDENT_0 . controller . METHOD_5 ( ) ; IDENT_9 . IDENT_10 = java . util . Locale . IDENT_11 ; "<AssertPlaceHolder>" ; } METHOD_6 ( javax . servlet . http . IDENT_12 ) { java . util . Locale IDENT_13 = null ; javax . servlet . http . IDENT_14 session = request . METHOD_3 ( false ) ; if ( session != null ) { java . lang . Object o = session . METHOD_7 ( IDENT_5 . IDENT_6 ) ; if ( o instanceof java . lang . String ) { IDENT_13 = org . IDENT_0 . util . IDENT_15 . parse ( ( ( java . lang . String ) ( o ) ) ) ; } else if ( o instanceof java . util . Locale ) { IDENT_13 = ( ( java . util . Locale ) ( o ) ) ; } } if ( IDENT_13 == null ) { IDENT_13 = IDENT_10 ; } if ( IDENT_13 == null ) { IDENT_13 = request . METHOD_8 ( ) ; if ( IDENT_13 == null ) { IDENT_13 = java . util . Locale . METHOD_9 ( ) ; } } return IDENT_13 ; }
org . junit . Assert . assertThat ( IDENT_9 . METHOD_6 ( request ) , org . hamcrest . CoreMatchers . is ( Locale . IDENT_7 ) )