ApiMethodAnnotationConfig { public void setAuthenticatorsIfSpecified(Class<? extends Authenticator>[] authenticators) { if (!AnnotationUtil.isUnspecified(authenticators)) { config.setAuthenticators(Arrays.asList(authenticators)); } } ApiMethodAnnotationConfig(ApiMethodConfig config); ApiMethodConfig getConfig(); void setNameIfNotEmpty(String name); void setDescriptionIfNotEmpty(String description); void setPathIfNotEmpty(String path); void setHttpMethodIfNotEmpty(String httpMethod); 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 setIgnoredIfSpecified(AnnotationBoolean ignored); void setApiKeyRequiredIfSpecified(AnnotationBoolean apiKeyRequired); void setMetricCosts(ApiMetricCost[] metricCosts);  }
@Test public void testSetAuthenticatorIfSpecified() throws Exception { annotationConfig.setAuthenticatorsIfSpecified(PassAuthenticator.testArray); assertEquals(Arrays.asList(PassAuthenticator.testArray), config.getAuthenticators()); }