Testing NullPointerException with null argument passed to equals method