public HMac(HmacAlgorithm algorithm) {
		this(algorithm, (Key) null);
	}
@Test
	public void hmacTest(){
		String testStr = "test中文";

		byte[] key = "password".getBytes();
		HMac mac = new HMac(HmacAlgorithm.HmacMD5, key);

		String macHex1 = mac.digestHex(testStr);
		assertEquals("b977f4b13f93f549e06140971bded384", macHex1);

		String macHex2 = mac.digestHex(IoUtil.toStream(testStr, CharsetUtil.CHARSET_UTF_8));
		assertEquals("b977f4b13f93f549e06140971bded384", macHex2);
	}