METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . service . IDENT_2 mock = mock ( com . IDENT_0 . IDENT_1 . service . IDENT_2 . class ) ; int IDENT_3 = Integer . MAX_VALUE ; int count = 100 ; when ( mock . METHOD_1 ( IDENT_3 ) ) . thenReturn ( count ) ; com . IDENT_0 . IDENT_1 . IDENT_4 . service . IDENT_5 service = new com . IDENT_0 . IDENT_1 . IDENT_4 . service . METHOD_2 ( mock , false ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . Integer ) { if ( mock ) { return 1000 ; } return service . METHOD_1 ( IDENT_3 ) ; }
org . junit . Assert . assertEquals ( count , service . METHOD_1 ( IDENT_3 ) )