This could use `beIdenticalTo` instead. I'm not positive, but I also think the `id` cast might be unnecessary.