RemoteDocument implements Serializable { @Override public String toString() { return "RemoteDocument [bytes=" + Arrays.toString(bytes) + ", digestAlgorithm=" + digestAlgorithm + ", name=" + name + "]"; } RemoteDocument();  RemoteDocument(byte[] bytes, String name);  RemoteDocument(byte[] bytes, DigestAlgorithm digestAlgorithm, String name); byte[] getBytes(); void setBytes(byte[] bytes); DigestAlgorithm getDigestAlgorithm(); void setDigestAlgorithm(DigestAlgorithm digestAlgorithm); String getName(); void setName(String name); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testDocNull() { RemoteDocument doc = new RemoteDocument(); assertNotNull(doc.toString()); }