METHOD_0 ( ) { long expected = INT_0 ; when ( IDENT_0 . METHOD_1 ( METHOD_2 ( ) , eq ( STRING_0 ) , eq ( INT_1 ) ) ) . thenReturn ( expected ) ; long actual = METHOD_3 ( ) . METHOD_1 ( STRING_0 , INT_1 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 ) . METHOD_1 ( METHOD_2 ( ) , eq ( STRING_0 ) , eq ( INT_1 ) ) ; METHOD_4 ( IDENT_1 , IDENT_0 ) ; } METHOD_1 ( java . lang . String , java . lang . String , long ) { METHOD_5 ( IDENT_2 , STRING_1 ) ; try { java . net . URI uri = IDENT_3 . METHOD_6 ( ) . METHOD_7 ( IDENT_2 , STRING_2 ) . METHOD_8 ( STRING_3 , METHOD_9 ( ( IDENT_4 != ( Long . MAX_VALUE ) ? IDENT_4 : null ) ) ) . METHOD_8 ( STRING_4 , IDENT_5 ) . build ( ) ; return IDENT_0 . resource ( uri ) . accept ( IDENT_6 . IDENT_7 ) . header ( IDENT_8 . IDENT_9 , IDENT_10 ) . get ( com . IDENT_11 . IDENT_12 . IDENT_13 . client . Long . class ) ; } catch ( com . IDENT_11 . IDENT_12 . client . IDENT_14 e ) { throw METHOD_10 ( e ) ; } }
org . junit . Assert . assertEquals ( actual , expected )