DefaultThrottlingConfig implements ThrottlingConfig { static DefaultThrottlingConfig of(final Config config) { return new DefaultThrottlingConfig(ConfigWithFallback.newInstance(config, CONFIG_PATH, ConfigValue.values())); } private  DefaultThrottlingConfig(final ScopedConfig config); @Override Duration getInterval(); @Override int getLimit(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void render() { final ThrottlingConfig underTest = ThrottlingConfig.of(ConfigFactory.load("throttling-test")); final Config rendered = underTest.render(); final ThrottlingConfig reconstructed = ThrottlingConfig.of(rendered); assertThat(reconstructed).isEqualTo(underTest); }