write a java unit testing for a function having static method like a big problem which if and else and calling another static function of another class.first mock the static method and then generate the unit test for it .Give the method and the unit test for it write the unit test also for it
public class TestClass{ public static int func(int n){ if(n % 2 == 0){ return n / 2; }else{ return (n + 1)/ 2; } } }