ApiClassAnnotationConfig { public void setPeerAuthenticatorsIfSpecified( Class<? extends PeerAuthenticator>[] peerAuthenticators) { if (!AnnotationUtil.isUnspecifiedPeerAuthenticators(peerAuthenticators)) { config.setPeerAuthenticators(Arrays.asList(peerAuthenticators)); } } ApiClassAnnotationConfig(ApiClassConfig config); void setResourceIfNotEmpty(String resource); void setAuthLevelIfSpecified(AuthLevel authLevel); void setScopesIfSpecified(String[] scopes); void setAudiencesIfSpecified(String[] audiences); void setIssuerAudiencesIfSpecified(ApiIssuerAudienceConfig issuerAudiences); void setClientIdsIfSpecified(String[] clientIds); void setAuthenticatorsIfSpecified(Class<? extends Authenticator>[] authenticators); void setPeerAuthenticatorsIfSpecified(
      Class<? extends PeerAuthenticator>[] peerAuthenticators); void setUseDatastoreIfSpecified(AnnotationBoolean useDatastore); void setApiKeyRequiredIfSpecified(AnnotationBoolean apiKeyRequired);  }
@Test public void testSetPeerAuthenticatorIfSpecified() throws Exception { annotationConfig.setPeerAuthenticatorsIfSpecified(PassPeerAuthenticator.testArray); Mockito.verify(config).setPeerAuthenticators(Arrays.asList(PassPeerAuthenticator.testArray)); }