Indeed, I was fooled by the usage of `assertEquals`. Everything should be ok now.