@Test
public void testAuthenticateSkipTokenAuthCookieAuthFail() throws ServiceUnavailableException {

  attr.set(Attribute.SKIP_TOKEN_AUTH, true);
  authenticator = new GoogleAppEngineAuthenticator(oauthService, userService) {
    @Override
    boolean shouldTryCookieAuth(ApiMethodConfig config) {
      return true;
    }
  };
  when(userService.getCurrentUser()).thenReturn(null);
  assertNull(authenticator.authenticate(request));
}