### Question:
TaskState { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } @JsonCreator  TaskState(@JsonProperty("status") final String status, @JsonProperty("msg") final String message); String getMessage(); String getStatus(); boolean isSuccess(); boolean isFinished(); @Override String toString();  }### Answer:
@Test public void testToStringFormat() throws Exception { TaskState taskState = readObjectFromResource("/dataset/taskStateOK.json", TaskState.class); assertThat(taskState.toString(), matchesPattern(TaskState.class.getSimpleName() + "\\[.*\\]")); }