TestMailAccount is now testing the method toJson()