@Test
public void testAuthenticate_appEngineRunTimeUnmatchedXAppengineHeader() {

  System.setProperty(EnvUtil.ENV_APPENGINE_RUNTIME, "Production");
  request.addHeader(EndpointsPeerAuthenticator.APPENGINE_PEER, "invalid");
  assertFalse(authenticator.authenticate(request));
}