I'm in two minds about this assertion, because if actual *is* null then your test will fail on the next line anyway. This might make it more obvious what the bug is, though.