### Question:
AttributeInGrid implements GridElement, Serializable { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } @JsonCreator  AttributeInGrid(@JsonProperty("uri") String uri, @JsonProperty("totals") List<List<String>> totals,
                    @JsonProperty("alias") String alias);  AttributeInGrid(String uri, String alias);  AttributeInGrid(String uri, String alias, List<List<Total>> totals);  AttributeInGrid(final DisplayForm displayForm);  AttributeInGrid(final DisplayForm displayForm, final String alias);  AttributeInGrid(final Attribute attribute);  AttributeInGrid(final Attribute attribute, final String alias); @JsonProperty("totals") List<List<String>> getStringTotals(); @JsonIgnore List<List<Total>> getTotals(); String getUri(); String getAlias(); @Override String toString();  }### Answer:
@Test public void testToStringFormat() throws Exception { final AttributeInGrid attr = readObjectFromResource("/md/report/attributeInGrid.json", AttributeInGrid.class); assertThat(attr.toString(), matchesPattern(AttributeInGrid.class.getSimpleName() + "\\[.*\\]")); }