@Test
public void testAuthenticateUserDigestDisabled() throws Exception {

	User user = new User(username, "Ernie", false, true, true, true, Collections.<GrantedAuthority> emptyList());
	expect(userDetailsService.loadUserByUsername(username)).andReturn(user);
	replay(userDetailsService);
	try {
		callbackHandler.handleInternal(callback);
		Assert.fail("disabled user authenticated");
	} catch (DisabledException expected) {
		// expected
	}
	verify(userDetailsService);
}