### Question:
NestedAttribute extends AbstractObj { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } @JsonCreator protected  NestedAttribute(@JsonProperty("meta") Meta meta, @JsonProperty("content") Content content); @JsonIgnore Collection<DisplayForm> getDisplayForms(); @JsonIgnore Collection<Key> getPrimaryKeys(); @JsonIgnore Collection<Key> getForeignKeys(); @JsonIgnore DisplayForm getDefaultDisplayForm(); @JsonIgnore String getDimensionUri(); boolean hasDimension(); @JsonIgnore Collection<String> getRelations(); @JsonIgnore String getDirection(); @JsonIgnore String getSort(); @JsonIgnore boolean isSortedByLinkedDf(); @JsonIgnore boolean isSortedByUsedDf(); @JsonIgnore boolean isSortedByPk(); @JsonIgnore String getType(); @JsonIgnore Collection<String> getCompositeAttribute(); @JsonIgnore Collection<String> getCompositeAttributePk(); @JsonIgnore String getDrillDownStepDisplayFormUri(); @JsonIgnore String getLinkedDisplayFormUri(); @JsonIgnore Collection<String> getFolders(); @JsonIgnore Collection<String> getGrain(); @Override String toString();  }### Answer:
@Test public void testToStringFormat() throws Exception { final NestedAttribute attribute = readObjectFromResource("/md/dimensionAttribute.json", NestedAttribute.class); assertThat(attribute.toString(), matchesPattern(NestedAttribute.class.getSimpleName() + "\\[.*\\]")); }