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