Is this behavior properly documented? If not, it's a bug.
public void testAddNull() {
Fraction a = new Fraction(5, 3);
try {
Fraction f = null;
a.add(null);
fail("added null");
}
catch (NullPointerException success) {
assertNotNull(success.getMessage());
}
}