@Test
public void testFrontendLimitsRulesNotDuplicatedInInheritance() throws Exception {

  @Api(frontendLimits = @ApiFrontendLimits(
      rules = {@ApiFrontendLimitRule(match = "test", qps = 1)}))
  class Test {
  }
  final class Child extends Test {
  }
  ApiConfig config = createConfig(Child.class);
  annotationReader.loadEndpointClass(serviceContext, Child.class, config);
  assertEquals(1, config.getFrontendLimitsConfig().getRules().size());
}