@Override
  public URL getResource(String name) {
    for (ClassLoader pluginClassloader : pluginClassloaders) {
      URL url = pluginClassloader.getResource(name);
      if (url != null) {
        return url;
      }
    }
    return getClass().getClassLoader().getResource(name);
  }
@Test
  public void aggregate_plugin_classloaders() {
    URLClassLoader checkstyle = newCheckstyleClassloader();

    I18nClassloader i18nClassloader = new I18nClassloader(Lists.newArrayList(checkstyle));
    assertThat(i18nClassloader.getResource("org/sonar/l10n/checkstyle.properties")).isNotNull();
    assertThat(i18nClassloader.getResource("org/sonar/l10n/checkstyle.properties").getFile()).endsWith("checkstyle.properties");
  }