### Question:
UploadsInfo { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } UploadsInfo(@JsonProperty("sets") Collection<DataSet> datasets); DataSet getDataSet(String datasetId); @Override String toString(); static final String URI; }### Answer:
@Test public void testToStringFormat() throws Exception { final UploadsInfo uploadsInfo = readObjectFromResource("/dataset/uploads/data-sets.json", UploadsInfo.class); assertThat(uploadsInfo.toString(), matchesPattern(UploadsInfo.class.getSimpleName() + "\\[.*\\]")); }