### Question:
ArchiveIdentifierMessageDigest extends ArchiveIdentifier { @Override public String toString() { return "ArchiveIdentifierMessageDigest [archiveType=" + getArchiveType() + ", nameMatchingType=" + getNameMatchingType() + ", name=" + getName() + ", messageDigest=" + messageDigest + "]"; } ArchiveIdentifierMessageDigest(final ArchiveType archiveType, final String name,
            final LSMessageDigest messageDigest);  ArchiveIdentifierMessageDigest(final ArchiveType archiveType, final String name,
            final String messageDigestHexString); final LSMessageDigest getMessageDigest(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testToString() { final ArchiveIdentifierMessageDigest ai = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, "abc", new LSMessageDigest(new byte[] { 1 })); Assert.assertNotNull("toString()", ai.toString()); }