@Test
public void testCheckEncryCredentialInfo() {

	
	/**
	 * 测试输入异常的情况。
	 */
	Assert.assertFalse(this.encryCredentialManager.checkEncryCredentialInfo(null));
	
	/**
	 * 测试凭据信息的userId为空。
	 */
	EncryCredentialInfo encryCredentialInfo = new EncryCredentialInfo();
	Assert.assertFalse(this.encryCredentialManager.checkEncryCredentialInfo(encryCredentialInfo));
	
	/**
	 * 测试凭据信息的userId不为空，过期时间为空。
	 */
	String userId = "test";
	encryCredentialInfo = new EncryCredentialInfo();
	encryCredentialInfo.setUserId(userId);
	Assert.assertFalse(this.encryCredentialManager.checkEncryCredentialInfo(encryCredentialInfo));
	
	
	/**
	 * 测试凭据信息的userId不为空，过期时间不为空，但是凭据已经过期的情况。
	 */
	encryCredentialInfo.setExpiredTime(new Date());
	Assert.assertFalse(this.encryCredentialManager.checkEncryCredentialInfo(encryCredentialInfo));
	
}