ApiFrontendLimitsAnnotationConfig { public void setUnregisteredUserQpsIfSpecified(int unregisteredUserQps) { if (unregisteredUserQps != Api.UNSPECIFIED_INT) { config.setUnregisteredUserQps(unregisteredUserQps); } } ApiFrontendLimitsAnnotationConfig(ApiFrontendLimitsConfig config); ApiFrontendLimitsConfig getConfig(); void setUnregisteredUserQpsIfSpecified(int unregisteredUserQps); void setUnregisteredQpsIfSpecified(int unregisteredQps); void setUnregisteredDailyIfSpecified(int unregisteredDaily);  }
@Test public void testSetUnregisteredUserQpsIfSpecified() { annotationConfig.setUnregisteredUserQpsIfSpecified(4); assertEquals(4, config.getUnregisteredUserQps()); }
@Test public void testSetUnregisteredUserQpsIfSpecified_unspecified() { annotationConfig.setUnregisteredUserQpsIfSpecified(Api.UNSPECIFIED_INT); testDefaults(); annotationConfig.setUnregisteredUserQpsIfSpecified(22); annotationConfig.setUnregisteredUserQpsIfSpecified(Api.UNSPECIFIED_INT); assertEquals(22, config.getUnregisteredUserQps()); }