METHOD_0 ( ) { IDENT_0 . Response response = new IDENT_0 . Response . Builder ( ) . request ( new IDENT_0 . IDENT_1 . Builder ( ) . url ( STRING_0 ) . build ( ) ) . protocol ( IDENT_2 . IDENT_3 ) . code ( 200 ) . message ( "" ) . headers ( IDENT_0 . IDENT_4 . of ( STRING_1 , STRING_2 ) ) . build ( ) ; long now = java . lang . System . currentTimeMillis ( ) ; java . util . Date d = com . IDENT_5 . client . IDENT_6 . METHOD_1 ( now , response ) ; org . joda . time . IDENT_7 IDENT_8 = new org . joda . time . METHOD_2 ( d ) ; org . joda . time . METHOD_2 expected = new org . joda . time . METHOD_3 ( now ) . METHOD_4 ( INT_0 ) . METHOD_5 ( ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( long , IDENT_0 . Response ) { java . lang . String IDENT_8 = response . header ( com . IDENT_5 . client . IDENT_9 ) ; if ( IDENT_8 == null ) { return null ; } try { long IDENT_10 = java . lang . Long . METHOD_6 ( IDENT_8 ) ; return new java . util . Date ( ( now + ( TimeUnit . IDENT_11 . METHOD_7 ( IDENT_10 ) ) ) ) ; } catch ( java . lang . IDENT_12 e ) { try { return com . IDENT_5 . client . IDENT_6 . IDENT_13 . get ( ) . parse ( IDENT_8 ) ; } catch ( java . text . IDENT_14 IDENT_15 ) { com . IDENT_5 . client . IDENT_6 . logger . warn ( ( ( STRING_3 + IDENT_8 ) + STRING_4 ) ) ; return null ; } } }
org . junit . Assert . assertThat ( IDENT_8 , org . hamcrest . Matchers . is ( expected ) )