ApiClassAnnotationConfig { public void setAuthenticatorsIfSpecified(Class<? extends Authenticator>[] authenticators) { if (!AnnotationUtil.isUnspecified(authenticators)) { config.setAuthenticators(Arrays.asList(authenticators)); } } 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 testSetAuthenticatorIfSpecified() throws Exception { annotationConfig.setAuthenticatorsIfSpecified(PassAuthenticator.testArray); Mockito.verify(config).setAuthenticators(Arrays.asList(PassAuthenticator.testArray)); }