Can't this be a regular equals check? If you have good reasons to compare with `==`, use `assertSame`.