@Test
public void testNonuniqueRestSignatures_multiClass() throws Exception {

  @Api
  class Foo {
    @ApiMethod(path = "path")
    public void foo() {}
  }
  ApiConfig config1 = configLoader.loadConfiguration(ServiceContext.create(), Foo.class);
  @Api
  class Bar {
    @ApiMethod(path = "path")
    public void bar() {}
  }
  ApiConfig config2 = configLoader.loadConfiguration(ServiceContext.create(), Bar.class);
  try {
    validator.validate(Lists.newArrayList(config1, config2));
    fail();
  } catch (DuplicateRestPathException expected) {
  }
}