METHOD_0 ( ) { org . joda . time . IDENT_0 now = new org . joda . time . METHOD_1 ( ) ; org . IDENT_1 . IDENT_2 . IDENT_3 IDENT_4 = new org . IDENT_1 . IDENT_2 . METHOD_2 ( STRING_0 , INT_0 , now . METHOD_3 ( INT_1 ) . METHOD_4 ( ) ) ; writer . METHOD_5 ( IDENT_4 ) ; org . IDENT_1 . IDENT_2 . METHOD_2 expected = new org . IDENT_1 . IDENT_2 . METHOD_2 ( STRING_0 , 20 , now . METHOD_3 ( 50 ) . METHOD_4 ( ) ) ; writer . METHOD_5 ( expected ) ; writer . METHOD_5 ( new org . IDENT_1 . IDENT_2 . METHOD_2 ( STRING_0 , INT_2 , now . METHOD_3 ( INT_3 ) . METHOD_4 ( ) ) ) ; org . IDENT_1 . IDENT_2 . METHOD_2 IDENT_5 = new org . IDENT_1 . IDENT_2 . METHOD_2 ( STRING_0 , 50 , now . METHOD_4 ( ) ) ; org . IDENT_1 . IDENT_2 . METHOD_2 actual = writer . METHOD_6 ( IDENT_5 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( org . IDENT_1 . IDENT_2 . METHOD_2 ) { java . util . IDENT_6 < org . IDENT_1 . IDENT_2 . METHOD_2 > queue = IDENT_7 . get ( IDENT_5 . getName ( ) ) ; if ( queue == null ) { return null ; } final long IDENT_8 = ( IDENT_5 . METHOD_7 ( ) ) - ( TimeUnit . IDENT_9 . convert ( INT_0 , TimeUnit . IDENT_10 ) ) ; long IDENT_11 = Long . MAX_VALUE ; org . IDENT_1 . IDENT_2 . METHOD_2 IDENT_12 = null ; for ( org . IDENT_1 . IDENT_2 . METHOD_2 IDENT_13 : queue ) { if ( IDENT_13 . METHOD_8 ( IDENT_5 ) ) { } else { long IDENT_14 = java . lang . Math . METHOD_9 ( ( ( IDENT_13 . METHOD_7 ( ) ) - IDENT_8 ) ) ; if ( IDENT_14 < IDENT_11 ) { IDENT_12 = IDENT_13 ; IDENT_11 = IDENT_14 ; } } } return IDENT_12 ; }
org . junit . Assert . assertThat ( actual , is ( expected ) )