@Test
public void grantDigestRoleTest() {

	String encodeDigest = oadrUserService.encodeDigest("passUser", "passUser",
			digestAuthenticationProvider.getRealm());
	User digestUserDetail = oadrSecurityRoleService.digestUserDetail("passUser");
	assertEquals(digestUserDetail.getPassword(), encodeDigest);
	User grantDigestRole = oadrSecurityRoleService.grantDigestRole("passUser", encodeDigest);
	assertEquals(grantDigestRole.getPassword(), encodeDigest);
	boolean exception = false;
	try {
		oadrSecurityRoleService.grantDigestRole("passUser", "passUser");
	} catch (Exception e) {
		exception = true;
	}
	assertTrue(exception);
}