ApiCacheControlAnnotationConfig { public void setMaxAgeIfSpecified(int maxAge) { if (maxAge != Api.UNSPECIFIED_INT) { config.setMaxAge(maxAge); } } ApiCacheControlAnnotationConfig(ApiCacheControlConfig config); ApiCacheControlConfig getConfig(); void setTypeIfNotEmpty(String type); void setMaxAgeIfSpecified(int maxAge);  }
@Test public void testSetMaxAgeIfSpecified() { annotationConfig.setMaxAgeIfSpecified(4); assertEquals(4, config.getMaxAge()); }
@Test public void testSetMaxAgeIfSpecified_unspecified() { annotationConfig.setMaxAgeIfSpecified(Api.UNSPECIFIED_INT); testDefaults(); annotationConfig.setMaxAgeIfSpecified(12); annotationConfig.setMaxAgeIfSpecified(Api.UNSPECIFIED_INT); assertEquals(12, config.getMaxAge()); }