@Test
public void testGetOAuth2UserSkipClientIdCheck() throws Exception {

  request.removeAttribute(Attribute.ENABLE_CLIENT_ID_WHITELIST);
  when(config.getScopeExpression()).thenReturn(AuthScopeExpressions.interpret(SCOPES));
  when(oauthService.getAuthorizedScopes(SCOPES)).thenReturn(SCOPES);
  when(oauthService.getClientId(SCOPES)).thenReturn(CLIENT_ID);
  when(config.getClientIds()).thenReturn(ImmutableList.of("clienId2"));
  when(oauthService.getCurrentUser(SCOPES)).thenReturn(APP_ENGINE_USER);
  assertEquals(APP_ENGINE_USER, authenticator.getOAuth2User(request, config));
}