### Question:
Metric extends AbstractObj implements Queryable, Updatable { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } @JsonCreator private  Metric(@JsonProperty("meta") Meta meta, @JsonProperty("content") Content content);  Metric(String title, String expression, String format); @JsonIgnore String getExpression(); @JsonIgnore String getFormat(); @JsonIgnore MaqlAst getMaqlAst(); @JsonIgnore Collection<String> getFolders(); @Override String toString();  }### Answer:
@Test public void testToStringFormat() throws Exception { final Metric metric = readObjectFromResource("/md/metric-out.json", Metric.class); assertThat(metric.toString(), matchesPattern(Metric.class.getSimpleName() + "\\[.*\\]")); }