Again, what's purpose of this test? Test getter? If you want to test how User is created, create e.g. two users with same id and test if two instances were create would IMHO make more sense