@Test
public void testValidatePeerAuthenticator() throws Exception {

  config.getApiClassConfig().getMethods()
      .get(methodToEndpointMethod(TestEndpoint.class.getMethod("getResultNoParams")))
      .setPeerAuthenticators(
          ImmutableList.<Class<? extends PeerAuthenticator>>of(PassPeerAuthenticator.class));
  validator.validate(config);
}