@Test(expected = AuthenticationException.class)
public void testBadCredential() throws Exception {

  Authentication authentication = new UsernamePasswordAuthenticationToken("notFound", "wrong");
  authenticationProvider.authenticate(authentication);
}