MultiStatusResponse { @Override public String toString() { return "MultiStatusResponse{" + "responses=" + responses + '}'; } MultiStatusResponse(Map<String, Integer> responses); static MultiStatusResponse fromJson(ObjectMapper mapper, InputStream stream); Map<String, Integer> getResponses(); int responseCount(); boolean isAllSuccess(); boolean hasResourceId(String resId); int getStatus(String resId); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() throws IOException { MultiStatusResponse response = fromJson(FILE_SUCCESS_RESPONSE); String s = response.toString(); assertThat(s).contains("res-1", "res-2"); }