Fidelity Investments Interview Question

Write Junit for invert method in Java.