java code for testing calc_div as black-box