Class<?> appClass = compiler.assertClass("plugin.application.method.id.Application");
Class<?> aClass = compiler.assertClass("plugin.application.method.id.A");
//
ApplicationDescriptor desc = ApplicationDescriptor.create(appClass);
ControllersDescriptor controllerDesc = new ControllersDescriptor(desc);
ControllerHandler a = controllerDesc.getHandler(aClass, "a");
ControllerHandler b = controllerDesc.getHandler(aClass, "b");
ControllerHandler c = controllerDesc.getHandler(aClass, "c");
//
assertEquals("foo", a.getId());
assertEquals("bar", b.getId());
assertEquals("juu", c.getId());
//
assertSame(a, controllerDesc.getMethodById("foo"));
assertSame(b, controllerDesc.getMethodById("bar"));
assertSame(c, controllerDesc.getMethodById("juu"));
}