### Question:
MetricElement implements Serializable { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } @JsonCreator  MetricElement(@JsonProperty("uri") final String uri,
                  @JsonProperty("alias") final String alias,
                  @JsonProperty("format") final String format,
                  @JsonProperty("drillAcrossStepAttributeDF") String drillAcrossStepAttributeDisplayFormUri);  MetricElement(final Metric metric, final String alias);  MetricElement(final Metric metric); String getUri(); String getAlias(); String getFormat(); @JsonProperty("drillAcrossStepAttributeDF") String getDrillAcrossStepAttributeDisplayFormUri(); @Override String toString();  }### Answer:
@Test public void testToStringFormat() { final MetricElement element = new MetricElement(URI, ALIAS, FORMAT, DRILL_URI); assertThat(element.toString(), matchesPattern(MetricElement.class.getSimpleName() + "\\[.*\\]")); }