This makes the common pattern of NewResource, SetName, easier. It also makes it less likely for you to forget to use SetName.
Since there are occasional API changes, I'd like to at least remember to keep the examples building, so we now have a test to remind us!