@Test(expected = UnexpectedAuthenticationFailedException.class)
public void testGetCurrentUserIdThrowsUnexpectedAuthenticationFailedException() throws Exception {

  when(accessController.validate(credentials)).thenThrow(InvalidCredentialsException.class);
  context.getCurrentUserID();
}