### Question:
ApiMethodAnnotationConfig { public void setPathIfNotEmpty(String path) { if (path != null && !path.isEmpty()) { config.setPath(path); } } 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);  }### Answer:
@Test public void testSetPathIfNotEmpty() { annotationConfig.setPathIfNotEmpty("bleh"); assertEquals("bleh", config.getPath()); }
@Test public void testSetPathIfNotEmpty_empty() { annotationConfig.setPathIfNotEmpty(""); testDefaults(); annotationConfig.setPathIfNotEmpty("foo"); annotationConfig.setPathIfNotEmpty(""); assertEquals("foo", config.getPath()); }