METHOD_0 ( ) { when ( session . METHOD_1 ( STRING_0 ) ) . thenReturn ( new java . util . METHOD_2 ( INT_0 , java . util . Calendar . IDENT_0 , 1 ) . getTime ( ) . getTime ( ) ) ; when ( request . METHOD_3 ( STRING_1 ) ) . thenReturn ( new java . util . METHOD_2 ( INT_0 , java . util . Calendar . IDENT_0 , 9 ) . METHOD_4 ( ) ) ; when ( request . METHOD_5 ( ) ) . thenReturn ( session ) ; when ( IDENT_1 . METHOD_6 ( de . IDENT_2 . IDENT_3 . web . IDENT_4 . IDENT_5 . IDENT_6 , de . IDENT_2 . IDENT_3 . web . IDENT_4 . IDENT_5 . IDENT_7 , de . IDENT_2 . IDENT_3 . web . IDENT_4 . IDENT_5 . IDENT_8 , STRING_2 ) ) . thenReturn ( new de . IDENT_2 . IDENT_3 . page . METHOD_7 ( STRING_3 , new java . util . METHOD_2 ( INT_0 , java . util . Calendar . IDENT_0 , 1 ) . getTime ( ) , INT_1 , STRING_4 ) ) ; de . IDENT_2 . IDENT_3 . page . IDENT_9 . METHOD_8 ( ) ; org . springframework . http . IDENT_10 < byte [ ] > result = IDENT_11 . METHOD_9 ( de . IDENT_2 . IDENT_3 . web . IDENT_4 . IDENT_5 . IDENT_6 , de . IDENT_2 . IDENT_3 . web . IDENT_4 . IDENT_5 . IDENT_7 , de . IDENT_2 . IDENT_3 . web . IDENT_4 . IDENT_5 . IDENT_12 , STRING_2 , false , request ) ; "<AssertPlaceHolder>" ; } METHOD_9 ( java . lang . String , java . lang . String , java . lang . String , java . lang . String , boolean , javax . servlet . http . IDENT_13 ) { try { IDENT_14 = de . IDENT_2 . IDENT_3 . util . IDENT_15 . METHOD_10 ( IDENT_14 ) ; de . IDENT_2 . IDENT_3 . page . METHOD_7 metadata = IDENT_1 . METHOD_6 ( IDENT_16 , IDENT_17 , IDENT_14 , name ) ; org . springframework . http . IDENT_18 headers = new org . springframework . http . METHOD_11 ( ) ; long IDENT_19 = metadata . METHOD_12 ( ) . getTime ( ) ; long IDENT_20 = de . IDENT_2 . IDENT_3 . IDENT_21 . IDENT_22 . METHOD_13 ( request . METHOD_5 ( ) ) ; long IDENT_23 = java . lang . Math . max ( IDENT_19 , IDENT_20 ) ; if ( ! IDENT_24 ) { long IDENT_25 = de . IDENT_2 . IDENT_3 . page . IDENT_26 . METHOD_14 ( IDENT_16 ) ; if ( IDENT_25 >= 0 ) { IDENT_23 = java . lang . Math . max ( IDENT_23 , IDENT_25 ) ; } long IDENT_27 = request . METHOD_3 ( STRING_1 ) ; if ( ( IDENT_27 >= 0 ) && ( IDENT_23 <= IDENT_27 ) ) { return new org . springframework . http . IDENT_10 < byte [ ] > ( headers , org . springframework . http . IDENT_28 . IDENT_29 ) ; } } headers . METHOD_15 ( IDENT_23 ) ; headers . METHOD_16 ( 0 ) ; headers . METHOD_17 ( STRING_5 ) ; if ( IDENT_24 ) { headers . set ( STRING_6 , ( ( STRING_7 + ( name . replace ( STRING_8 , STRING_9 ) ) ) + STRING_10 ) ) ; } de . IDENT_2 . IDENT_3 . page . IDENT_30 IDENT_4 = IDENT_1 . METHOD_9 ( IDENT_16 , IDENT_17 , IDENT_14 , name ) ; headers . METHOD_18 ( org . springframework . http . IDENT_31 . METHOD_19 ( IDENT_4 . METHOD_20 ( ) ) ) ; return new org . springframework . http . IDENT_10 < byte [ ] > ( IDENT_4 . METHOD_21 ( ) . METHOD_21 ( ) , headers , org . springframework . http . IDENT_28 . IDENT_32 ) ; } catch ( de . IDENT_2 . IDENT_3 . page . IDENT_33 e ) { return new org . springframework . http . IDENT_10 < byte [ ] > ( org . springframework . http . IDENT_28 . IDENT_34 ) ; } }
org . junit . Assert . assertEquals ( IDENT_28 . IDENT_29 , result . getStatusCode ( ) )