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