Instead of testing static methods in a Java class, let's carry out unit test on a proper self-contained and encapsulated Java class with its own private variables and public operations.
Suppose that we have a class called MyNumber that represents a number, and capable of performing arithmetic operations.