### Question:
BatchJobUploadStatus implements Serializable { @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .append("totalContentLength", totalContentLength) .append("resumableUploadUri", resumableUploadUri) .toString(); } BatchJobUploadStatus(long totalContentLength, @Nullable URI resumableUploadUri); long getTotalContentLength(); @Nullable URI getResumableUploadUri(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void testToString() { Long totalContentLength = 500L; String uploadUrl = "http: BatchJobUploadStatus status = new BatchJobUploadStatus(totalContentLength, URI.create(uploadUrl)); assertThat( "toString should contain the total content length", status.toString(), Matchers.containsString(totalContentLength.toString())); assertThat( "toString should contain the upload URL", status.toString(), Matchers.containsString(uploadUrl)); }