Behaving a certain way to pretend being virtuous, it turns out, is almost as good as actually being virtuous.