@Test
public void testApiMethodConfigWithApiMethodNameContainingContinuousDots() throws Exception {

  @Api(name = "testApi", version = "v1", resource = "bar")
  final class Test {
    @ApiMethod(name = "TestApi..testMethod")
    public void test() {
    }
  }
  ApiConfig config = configLoader.loadConfiguration(ServiceContext.create(), Test.class);
  try {
    validator.validate(config);
    fail("Expected InvalidMethodNameException.");
  } catch (InvalidMethodNameException expected) {
  }
}