May fail : you should put the constant first in the test. We're almost sure it won't be null (unless it as been set as null in the source code, that would be really sad). This way, we shouldn't face potential NPEs.