### Question:
ScheduledMail extends AbstractObj implements Queryable, Updatable { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } @JsonCreator  ScheduledMail(@JsonProperty("meta") Meta meta, @JsonProperty("content") Content content); private  ScheduledMail(String title, String summary, Set<String> tags, boolean deprecated, String recurrency,
                          LocalDate startDate, String timeZone, Collection<String> toAddresses,
                          Collection<String> bccAddresses, String subject, String body, List<Attachment> attachments);  ScheduledMail(String title, String summary);  ScheduledMail(String title, String summary, String recurrency, LocalDate startDate, String timeZone,
                         Collection<String> toAddresses, Collection<String> bccAddresses, String subject, String body,
                         List<Attachment> attachments); @JsonIgnore ScheduledMailWhen getWhen(); @JsonIgnore Collection<String> getToAddresses(); @JsonIgnore Collection<String> getBccAddresses(); @JsonIgnore String getSubject(); @JsonIgnore String getBody(); @JsonIgnore Collection<? extends Attachment> getAttachments(); ScheduledMail setRecurrency(String recurrency); ScheduledMail setStartDate(LocalDate startDate); ScheduledMail setTimeZone(String timeZone); ScheduledMail setTo(Collection<String> toAddresses); ScheduledMail setBcc(Collection<String> bccAddresses); ScheduledMail setSubject(String subject); ScheduledMail setBody(String body); ScheduledMail setAttachments(List<Attachment> attachments); ScheduledMail addToAddress(String toAdd); ScheduledMail addBccAddress(String bccAdd); ScheduledMail addReportAttachment(ReportDefinition reportDefinition, Map<String, String> exportOptions, String... formats); ScheduledMail addReportAttachment(ReportDefinition reportDefinition, Map<String, String> exportOptions, ExportFormat... formats); ScheduledMail addDashboardAttachment(String uri, Integer allTabs, String executionContext, String... tabs); @Override String toString();  }### Answer:
@Test public void testToStringFormat() throws Exception { final ScheduledMail scheduledMail = readObjectFromResource("/md/scheduledMail.json", ScheduledMail.class); assertThat(scheduledMail.toString(), matchesPattern(ScheduledMail.class.getSimpleName() + "\\[.*\\]")); }