ApiClassAnnotationConfig { public void setResourceIfNotEmpty(String resource) { if (!resource.isEmpty()) { config.setResource(resource); } } 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 testSetResourceIfNotEmpty() { annotationConfig.setResourceIfNotEmpty("foo"); Mockito.verify(config).setResource("foo"); }
@Test public void testSetResourceIfNotEmpty_empty() { annotationConfig.setResourceIfNotEmpty(""); Mockito.verifyZeroInteractions(config); annotationConfig.setResourceIfNotEmpty("bleh"); annotationConfig.setResourceIfNotEmpty(""); Mockito.verify(config).setResource("bleh"); Mockito.verifyNoMoreInteractions(config); }