METHOD_0 ( ) { java . util . List < org . sagebionetworks . repo . model . message . IDENT_0 > IDENT_1 = METHOD_1 ( 10 , INT_0 ) ; when ( IDENT_2 . METHOD_2 ( INT_0 , null , 10 ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_2 . METHOD_3 ( ) ) . thenReturn ( INT_1 ) ; java . lang . Long next = IDENT_3 . METHOD_4 ( INT_0 , INT_2 ) ; java . lang . Long IDENT_4 = - 1L ; "<AssertPlaceHolder>" ; verify ( IDENT_5 , times ( 10 ) ) . METHOD_5 ( any ( org . sagebionetworks . repo . model . message . IDENT_0 . class ) ) ; } METHOD_4 ( java . lang . Long , java . lang . Long ) { if ( IDENT_6 == null ) throw new java . lang . IllegalArgumentException ( STRING_0 ) ; long IDENT_7 = - 1 ; java . util . List < org . sagebionetworks . repo . model . message . IDENT_0 > list = IDENT_8 . METHOD_2 ( IDENT_6 , null , IDENT_9 ) ; for ( org . sagebionetworks . repo . model . message . IDENT_0 IDENT_10 : list ) { IDENT_11 . METHOD_5 ( IDENT_10 ) ; IDENT_7 = ( IDENT_10 . METHOD_6 ( ) ) + 1 ; } long IDENT_12 = IDENT_8 . METHOD_3 ( ) ; if ( IDENT_7 > IDENT_12 ) { IDENT_7 = - 1 ; } return IDENT_7 ; }
org . junit . Assert . assertEquals ( IDENT_4 , next )