Code example for DigestInputStream

0
	 *        java.security.MessageDigest) 
	 */ 
	public void test_ConstructorLjava_io_InputStreamLjava_security_MessageDigest() { 
		// Test for method java.security.DigestInputStream(java.io.InputStream, 
		// java.security.MessageDigest) 
		DigestInputStream dis = new DigestInputStream(inStream, digest);
		assertNotNull("Constructor returned null instance", dis);
	} 
 
	/** 
	 * @tests java.security.DigestInputStream#getMessageDigest() 
	 */ 
	public void test_getMessageDigest() { 
		// Test for method java.security.MessageDigest 
		// java.security.DigestInputStream.getMessageDigest() 
		DigestInputStream dis = new DigestInputStream(inStream, digest);
		assertEquals("getMessageDigest returned a bogus result", digest, dis
				.getMessageDigest());
	} 
 
	/**