Mic { @Override public String toString() { return String.format("%s, %s", digestAsString, algorithm.getIdentifier()); } Mic(Digest digest);  Mic(String digestAsString, SMimeDigestMethod algorithm); static Mic valueOf(String receivedContentMic); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testToString() throws Exception { Mic mic = new Mic("eeWNkOTx7yJYr2EW8CR85I7QJQY=", SMimeDigestMethod.sha1); assertNotNull(mic); }