Without looking at the JavaDoc,
can you add null to a Fraction
? What happens if you do?
i.e.
Is an exception thrown?
If so which one?
Or is null treated as zero?
Or is null returned?
Something else?
Write a test that determines the answer to this question, and then adjust it to match the behavior.