Would the code be cleaner if you checked to see if expectedValue existed before running lines 92/93? Then, this comment wouldn't be necessary, as you'd never be adding an expected value that already exists.